1752360 Members
6520 Online
108787 Solutions
New Discussion юеВ

DNS issue

 
SOLVED
Go to solution
WW288996
Frequent Advisor

DNS issue

I have configured a new DNS server and found that it is working, but the issue is it is taking 10 to 15 seconds when I do ping or ssh with bost name.

For example:

[root@blrdns ~]# ping blrdns
PING blrdns.oesblr.nsn-rdnet.net (10.58.131.246) 56(84) bytes of data.

64 bytes from 10.58.131.246: icmp_seq=25 ttl=64 time=0.009 ms
64 bytes from 10.58.131.246: icmp_seq=26 ttl=64 time=0.009 ms
64 bytes from 10.58.131.246: icmp_seq=27 ttl=64 time=0.009 ms
64 bytes from 10.58.131.246: icmp_seq=28 ttl=64 time=0.009 ms

the ping response (64 bytes from ...)will be coming only after 10 seconds.

But if I do nslookup or host command it is immediatly giving the output.

[root@blrdns ~]# nslookup blrdns
Server: 10.58.131.246
Address: 10.58.131.246#53

Name: blrdns.oesblr.nsn-rdnet.net
Address: 10.58.131.246




[root@blrdns ~]# host blrdns
blrdns.oesblr.nsn-rdnet.net has address 10.58.131.246



Can anyone help me why this is happening.
15 REPLIES 15
Matti_Kurkela
Honored Contributor

Re: DNS issue

What happens if you do:

nslookup 10.58.131.246

or

host 10.58.131.246

If these have a delay, then your problem is with reverse DNS requests.

Are you using BIND or some other DNS server software?

With BIND, you can enable query logging on the DNS server side to see exactly what is happening there. Other DNS server software may allow something similar.

MK
MK
Steven Schweda
Honored Contributor

Re: DNS issue

> I have configured a new DNS server and
> found that it is working, [...]

Not exactly a complete description of how you
configured this new DNS server, nor of how
you tested it.

> [root@blrdns ~]# nslookup blrdns
> [...]

How well does it work in reverse?:

nslookup 10.58.131.246
WW288996
Frequent Advisor

Re: DNS issue

I have used bind.
[root@blrdns ~]# rpm -qa | grep bind
ypbind-1.19-9.el5
bind-utils-9.3.4-9.P1.el5
bind-9.3.4-9.P1.el5
bind-libs-9.3.4-9.P1.el5

If I use nslookup/host command then output is coming very fast (with in a second)

If I do nslookup 10.58.131.246 then I am getting the following very fast.

[root@blrdns named]# nslookup 10.58.131.246
Server: 10.58.131.246
Address: 10.58.131.246#53

246.131.58.10.in-addr.arpa name = blrdns.oesblr.nsn-rdnet.net.



But Its not showing hostname while pinging, please find the below ,

[root@blrdns named]# ping 10.58.131.246
PING 10.58.131.246 (10.58.131.246) 56(84) bytes of data.
64 bytes from 10.58.131.246: icmp_seq=1 ttl=64 time=0.027 ms
64 bytes from 10.58.131.246: icmp_seq=2 ttl=64 time=0.009 ms
WW288996
Frequent Advisor

Re: DNS issue

Please find my config files also below,

[root@blrdns named]# cat /etc/named.conf
options {
directory "/var/named";
};
zone "oesblr.nsn-rdnet.net" {
type master;
file "oesblr.nsn-rdnet.zone";
};
zone "131.58.10.in-addr.arpa" {
type master;
notify no;
allow-query { any; };
file "131.58.10.db";
};



-------------------------------------------


[root@blrdns named]# cat /var/named/oesblr.nsn-rdnet.zone
$TTL 86400
@ IN SOA oesblr.nsn-rdnet.net. root. (
535 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS oesblr.nsn-rdnet.net.
blrdns IN A 10.58.131.246
vm131x185 IN A 10.58.131.185


--------------------------------------------


[root@blrdns named]# cat 131.58.10.db
$TTL 86400
131.58.10.in-addr.arpa. IN SOA blrdns.oesblr.nsn-rdnet.net. root. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
NS oesblr.nsn-rdnet.net
246 IN PTR blrdns.oesblr.nsn-rdnet.net.
185 IN PTR vm131x185.oesblr.nsn-rdnet.net.








Vitaly Karasik_1
Honored Contributor

Re: DNS issue

IMO, this is not reverse DNS problem.
What is your /etc/nsswitch.conf file says about "host"?
WW288996
Frequent Advisor

Re: DNS issue

nsswitch.conf file has dns as first entry.

hosts dns files
Vitaly Karasik_1
Honored Contributor

Re: DNS issue

>the ping response (64 bytes from ...)will >be coming only after 10 seconds.

and ping by IP has no delay?
WW288996
Frequent Advisor

Re: DNS issue

No ping with IP has no delay.

But it is not showing hostname while pingigng with IP.
Vitaly Karasik_1
Honored Contributor

Re: DNS issue

>No ping with IP has no delay.
weird.
what is your resolv.conf? do you have just one DNS server into it ?


>But it is not showing hostname while >pingigng with IP.
it's OK - normal ping behaviour