![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
DNS truble
OS on all PC RHEL 5.1
SELinux OFF iptables OFF Its part of named config What here not correct? On my PC IP address 192.168.1.2 i can't ping yahoo.com and google.com etc... Not dig not host all don't work (( In /etc/resolve.conf i'm write IP of my DNS server (192.168.1.200) On server work this config and on server all work! I can ping and dig from my DNS server Code:
acl "myaddresses" { 127.0.0.1; 192.168.1.200; };
acl "mynetwork" { 192.168.1.0/24; };
options {
listen-on port 53 { myaddresses; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
allow-query { localhost; mynetwork; };
allow-recursion { localhost; mynetwork; };
allow-transfer { localhost; mynetwork; };
forwarders { 168.95.1.1; };
forward only;
};
Code:
# netstat -napt | grep 53 tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 16309/named tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 16309/named tcp 0 0 ::1:53 :::* LISTEN 16309/named tcp 0 0 ::1:953 :::* LISTEN 16309/named Code:
# nmap -vv 192.168.1.200 ... Interesting ports on helios.aksay.kz (192.168.1.200): Not shown: 1690 closed ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 111/tcp open rpcbind 755/tcp open unknown 814/tcp open unknown 842/tcp open unknown 2049/tcp open nfs ... # dig yahoo.com @192.168.1.200 ; <<>> DiG 9.5.0a6 <<>> yahoo,com @192.168.1.200 ;; global options: printcmd ;; connection timed out; no servers could be reached |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|