LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS help (https://www.linuxquestions.org/questions/linux-networking-3/dns-help-151419/)

pains2 02-27-2004 11:58 PM

DNS help
 
Hi,

I have a major problem.

Our work DNS server died a few weeks back, i managed to salvage the records manualy as i'm such a newbie in linux i couldn't even mount and format a floppy drive....have secceded in mounting...still for the life of me don't know how to format...

My problem is i migrated from 6.2 to 7.1 Red Hat, i think it's configured correctly, but i can't get it to server up DNS requests, it's almost like it's not listening on the port 53.

As i said i'm very new, so if anyone needs further details, i can provide them....but i don't know what you need right now...so please ask any questions.

I have specifically installed the DNS in installation, but when i go to the GUI linuxconf, under server client theres nothing there (DNS wise) and when i go to control then configure linuxconf modules i was expecting to see dnsconf...but it doesn't excist...is this correct for the version i'm using.....or has it not installed properly...how do i add it to linuxconf??

Further more, on the server itself, i can dig and resolve ANY ip address, external internal, my problem is when i point a computer to it that it times out etc.

Any help would be fantastic thanks.
:newbie:

linuxxed 02-28-2004 03:28 AM

you say you can resolve hostnames on the server but not on clients .. isn't it? Then your debug routine should be like :

- Check where the nameserver is bound : lsof -i:53 or netstat -na |grep LISTEN |grep 53
- Check /etc/resolv.conf on the server
- Check /etc/resolv.conf on the client (if it is linux) -

- From the server: telnet localhost 53
- From the client : telnet server 53

- If you can't connect then check /etc/hosts.allow and hosts.deny on server and firewalls.


More debug :

$ nslookup
>server serverip
> yahoo.com


if the server is denying requests then check if any IP based drective is there on /etc/named.* like allow- . If there is a firewall then check if this line is in place

query-source address * port 53;


I'm assuming you're running BIND.

hope this helps.

pains2 02-29-2004 07:42 PM

Thanks for the reply

from netstat -na .....
it says it's listening on port xx.xx.xx.xx:53 127.0.0.1:53

also when i type in my IP address in nslookup it resolves itself xx.xx.xx.xx.in-addr.arpa name = ns.mydomain.com. is that correct?

shouldn't it just be mydomain.com. ??

Thanks, i know now it's listening......but i can't connect to it...how do i check the configuration of the software firewall

Thanks again for your help!!!


All times are GMT -5. The time now is 01:41 AM.