Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure DNS

Status
Not open for further replies.

lamsf

Technical User
Jul 27, 2003
103
0
0
US
Hi, I have a Linux server configured as DNS server. I have some problem which I hope someone can help. I have cracked my head and not sure what to check next.

I hv configured the /etc/resolv.conf file to be as follows:

domain xx.yy.zz
nameserver 10.130.8.17

but the server is not able to resolve the hostnames.

If the /etc/resolv.conf file is as follows:

domain xx.yy.zz
nameserver 127.0.0.1
nameserver 10.130.8.17

then the server is able to resolve hotnames using 127.0.0.1 as the DNS server.

What did I miss?
 
/etc/resolv.conf changes what the server uses as a dns server. is 10.130.8.17 the same ip as your box or another server?
 
/etc/resolv.conf changes what the server uses as a dns server. is 10.130.8.17 the same ip as your box or another server?

10.130.8.17 is the Linux server configured as DNS server.
How shld I configure the /etc/resolv.conf file so that the Linux server can be used as a DNS server for other boxes as well?
Shld I put "nameserver 127.0.0.1" or "nameserver 10.130.8.17" or both in the /etc/resolv.conf?
Thanks...
 
Only 10.130.8.17. Did you update the linux firewall (selinux,iptables, shorewall,etc.0) to allow port 53 access?
 
Only 10.130.8.17. Did you update the linux firewall (selinux,iptables, shorewall,etc.0) to allow port 53 access?

So I only hv to put "nameserver 10.130.8.17" in the /etc/resolv.conf for both the DNS server and other clients and it shld work fine?
I will check the linux firewall.
Thanks a lot!!
 
yes, it should work if 10.130.8.17 is allowing port 53 and the dns server is allowing queries.
 
yes, it should work if 10.130.8.17 is allowing port 53 and the dns server is allowing queries

I hv checked, there is no firewall.

The DNS only works when we put "nameserver 127.0.0.1" in the /etc/resolv.conf file. The nslookup as follows:

# nslookup
> dns1
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: dns1.xx.yy.com
Address: 10.130.9.1
> exit

If we put "nameserver 10.130.8.17" in the /etc/resolv.conf file, the nslookup fail, as follows:

# nslookup
> dns1
;; connection timed out; no servers could be reached
> exit

What could be the problem? How can I ensure that port 53 is working? Anything else I should check?

Thank you.
 
can you ping this 10.130.8.17? Doesnt Linux have a built in firewall of some sort? May be a .conf file for allowing ports. because when you use 10.130.8.17, you are actually going out to your network and then you seem to be able to come back to your server on the port 53. When you use 127.0.0.1...it never leaves your box. Check linux for port allowance


_______________________________________
I hope any help I give leads to great successes.
MCSE, MCSA, MCTS, CCA, VCP, CCNA
 
Thanks all for the reply.
After removing a couple of lines referring to localhost (127.0.0.1) from the /etc/named.conf file, the DNS is working fine with 10.130.8.17 now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top