- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- delayed nslookup response
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 11:38 PM
тАО02-13-2006 11:38 PM
actually it is not only nslookup which takes too much time, rlogin, telnet and ftp takes too much time, too. I have attached the complete tusc output where I can see 3 "sleeping", but no idea why. Why does it get "ERR#227 EADDRNOTAVAIL" ? Here is a summary :
12:12:32 [28853] execve("/usr/bin/nslookup", 0x7f7e035c, 0x7f7e0368) [entry]
env[0] @ 0x7f7e003b: "_=/usr/local/bin/tusc"
....
12:12:33 [28855] socket(AF_INET, SOCK_DGRAM, 0) .................. = 5
12:12:33 [28855] connect(5, 0x7f7b61d8, 16) ...................... = 0
12:12:33 [28855] send(5, 0x7f7e0f68, 42, 0) ...................... = 42
\00201\0\001\0\0\0\0\0\0022 0 025 0 021 0 021 0 \ai n - a d d r
04a r p a \0\0\f\001
12:12:33 [28855] select(6, 0x7f7e14d0, NULL, NULL, 0x7f7e14c8) ... = 1
12:12:33 [28855] recv(5, "\0028580\001\001\001\001022 0 02".., 1024, 0) = 104
12:12:33 [28855] close(5) ........................................ = 0
12:12:33 [28855] socket(AF_INET, SOCK_DGRAM, 0) .................. = 5
12:12:33 [28855] connect(5, 0x7f7b61d8, 16) ...................... = 0
12:12:33 [28855] send(5, 0x7f7e1528, 21, 0) ...................... = 21
\00301\0\001\0\0\0\0\0\003a c s \0\001\001
12:12:35 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... [sleeping]
12:12:38 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... = 0
12:12:38 [28855] connect(5, 0x7f7e1a78, 16) ...................... ERR#227 EADDRNOTAVAIL
12:12:38 [28855] sendto(5, 0x7f7e1528, 21, 0, NULL, NULL) ........ = 21
\00301\0\001\0\0\0\0\0\003a c s \0\001\001
12:12:38 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... = 1
12:12:38 [28855] recv(5, "\0038182\001\0\0\0\0\0\003a c s ".., 1024, 0) = 21
12:12:38 [28855] sendto(5, 0x7f7e1528, 21, 0, NULL, NULL) ........ = 21
\00301\0\001\0\0\0\0\0\003a c s \0\001\001
12:12:40 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... [sleeping]
12:12:43 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... = 0
12:12:43 [28855] sendto(5, 0x7f7e1528, 21, 0, NULL, NULL) ........ = 21
\00301\0\001\0\0\0\0\0\003a c s \0\001\001
12:12:45 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... [sleeping]
12:12:53 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... = 0
12:12:53 [28855] sendto(5, 0x7f7e1528, 21, 0, NULL, NULL) ........ = 21
\00301\0\001\0\0\0\0\0\003a c s \0\001\001
12:12:55 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... [sleeping]
12:13:00 [28855] select(6, 0x7f7e1a90, NULL, NULL, 0x7f7e1a88) ... = 1
12:13:00 [28855] recv(5, "\0038182\001\0\0\0\0\0\003a c s ".., 1024, 0) = 21
12:13:00 [28855] close(5) ........................................ = 0
12:13:00 [28855] ioctl(1, TCGETA, 0x7f7e0a28) .................... ERR#25 ENOTTY
12:13:00 [28855] write(1, 0x7f7c9000, 4) ......................... = 4
a c s \n
12:13:00 [28853] read(5, "a c s \n", 8192) ....................... = 4
.....
12:13:00 [28853] write(1, 0x7f7ce000, 15) ........................ = 15
1 0 . 1 0 . 5 0 . 2 9 \n\n
12:13:00 [28853] exit(0) ......................................... WIFEXITED(0)
Either there is something wrong with my DNS setting or the DNS server is not preperly configured, any idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 12:01 AM
тАО02-14-2006 12:01 AM
Re: delayed nslookup response
EADDRNOTAVAIL 227 /* Can't assign requested address */
Hope you have to change /etc/nsswitch.conf hosts: entry for better lookup.
Can you post the general information as executing as,
# nslookup hostname-which-usedin-tusc
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 12:42 AM
тАО02-14-2006 12:42 AM
Re: delayed nslookup response
Name Server: acs
Address: 10.10.50.20
Trying DNS
Name: hp1100.s.sligos.de
Address: 10.10.50.35
hp1100(261) /etc >cat /etc/nsswitch.conf
hosts: dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] nis [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] f
iles [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
hp1100(262) /etc >
hp1100(262) /etc >cat /etc/resolv.conf
domain s.sligos.de
nameserver 10.10.50.20
nameserver 161.90.180.26
search s.sligos.de sgt.de.int.xxxxxxxxxxx.com
Again the lookup took 28 seconds!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 02:46 AM
тАО02-14-2006 02:46 AM
Solutionnslookup some_host 12.34.56.78
nslookup some_host 12.34.56.89
nslookup some_host 12.34.56.90
(where 12.34.56.## are DNS servers) A maximum of 3 DNS servers are allowed in the /etc/resolv.conf file. Remove the failing DNS server(s) and you'll be back to normal. NOTE: for reliability, always have nsswitch.conf list files, then dns, not dns, nis then files. That way, a failed DNS server will not disable your system (include critical hosts/IP addresses in /etc/hosts)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 03:17 AM
тАО02-14-2006 03:17 AM
Re: delayed nslookup response
retrans 1000
retry 2
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 03:18 AM
тАО02-14-2006 03:18 AM
Re: delayed nslookup response
Name Server: acs
Address: 10.10.50.20
Trying DNS
Name: hp1100.s.sligos.de
Address: 10.10.50.35
(takes 1 second)
hp1100(294) /etc >nslookup hp1100
Name Server: acs
Address: 10.10.50.20
Trying DNS
Name: hp1100.s.sligos.de
Address: 10.10.50.35
(takes 25 seconds)
I know have only
nameserver 10.10.50.20
in my resolv.conf and "10.10.50.20" is actually not dead!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 06:15 AM
тАО02-14-2006 06:15 AM
Re: delayed nslookup response
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 10:19 PM
тАО02-14-2006 10:19 PM
Re: delayed nslookup response
actually the only NS is 10.10.50.20 in my resolv.conf, by the way I think I solved the problem :
I have bind 8.2 running on Linux and each time I run "nslookup hp1100" on my HP box I got 3 lines of errors on my bind server :
15-Feb-2006 11:42:20.745 default: warning: sysquery: no addrs found for root NS ()
15-Feb-2006 11:42:25.861 default: warning: sysquery: no addrs found for root NS ()
15-Feb-2006 11:42:46.307 default: warning: sysquery: no addrs found for root NS ()
Then I have removed the following lines from my named.conf and restarted named :
//zone "." {
// type hint;
// file "xxxx.root";
//};
I now have no delay with "nslookup hp1100".
So it was a linux box making trouble not HP! :)
Thanks for all your help!