General discussion


dns not working properly

By kamalmatta ·
hi all,

i have setup dns server on rh 7.1. after this setup i am able to use it for the proxy client as well as gateway clients on my network properly.
if i do nslookup it gives proper result but if i give nslookup where ppur is the host and is the domain of same server, it does not return result.

what could be the reason ?

secondly when i do nslookup, it shows the ip address of the server rather than the name of local server. like the result of nslookup shows the following
server :
address :

non authoritative answer:
name :
address :

i think it shoud show instead of in the name.

what could be the reason ?


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

dns not working properly

by rasjani In reply to dns not working properly

The reason most likely (as you dont describe it) is that you havent really setup local zone for And if you are, then probably you have something totally wrong in your named.conf (usually resides in /etc )

Also, you dont really mention what dns server you are using but then again, its propably bind.

So lets think that its bind you are using. Start your editor with /etc/named.conf and and following few lines to it:

zone "" IN {
type master; file "";
notify no;

In that file, there should be allready a section named "options". Now check out what's after directory in that section. Then start editing a filed called "" on *that* directory you found in options section.

Here's example what kind your can look like:
@ IN SOA (
2001121201 ; serial, todays date + todays serial # 8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
; NS ns
localhost A
ppur A
ns CNAME ppur

And then, restart your bind ( /etc/init.d/named restart )

Related Discussions

Related Forums