Sponsored Content
Operating Systems Linux Red Hat named caching server odd lookup issue! Post 302587882 by Paragon1970 on Friday 6th of January 2012 07:16:23 AM
Old 01-06-2012
named caching server odd lookup issue!

Hello All,

I have resubmitted this issue I am having as the my last post was moved to programming as the issue appeared to be specific to java but on further investigation this is not the case.

The issues also arises when running the host command and appears to be either a problem with the named caching server running on Centos or the response is mangle in someway for the url webservices.securetrading.net.

The problem arrises as soon as the a lookup up is made for ipv6 AAAA record.
It only occurs with the above mentioned URL.

I have installed a separate instance of centos running named caching server on a virtualbox host running under OSX on my home network and can confirm the issue is still arising. So it's not limited to our business network.

I can also confirm the issue also arrises when changing to different nameservers ie when using google public nameserver 8.8.8.8

After a period of time the nslookup starts to resolve correctly but as soon as I execute a host command or a java program that requires a lookup to the ipv6 AAAA the issue returns.

Please find below details of issue.

Kind Regards,
SRG

nslookup one:
Code:
# nslookup webservices.securetrading.net
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
Name:	webservices.securetrading.net
Address: 194.74.4.78

tcpdump output nslookup one:
11:39:40.014854 IP proxy.59045 > ns2.server.co.uk.domain:  39056+ [1au] A? webservices.securetrading.net. (58)
11:39:40.041373 IP ns2.server.co.uk.domain > proxy.59045:  39056 1/3/1 (135)

Host command lookup:
Code:
# host  webservices.securetrading.net
webservices.securetrading.net has address 195.224.56.78
Host webservices.securetrading.net not found: 3(NXDOMAIN)
Host webservices.securetrading.net not found: 3(NXDOMAIN)

tcpdump output from host command:
11:41:02.302382 IP proxy.50625 > ns2.server.co.uk.domain:  36747+ [1au] A? webservices.securetrading.net. (58)
11:41:02.303136 IP ns2.server.co.uk.domain > proxy.59482:  51587 1/8/9 (412)
11:41:02.334418 IP ns2.server.co.uk.domain> proxy.50625:  36747 1/3/1 (135)
11:41:02.335576 IP proxy.62245 > ns2.server.co.uk.domain:  13209+ [1au] AAAA? webservices.securetrading.net. (58)
11:41:02.366372 IP ns2.server.co.uk.domain > proxy.62245:  13209 NXDomain 0/1/1 (126)

nslookup two:
Code:
# nslookup webservices.securetrading.net
Server:		127.0.0.1
Address:	127.0.0.1#53

** server can't find webservices.securetrading.net: NXDOMAIN

Please note my original post is the following:
https://www.unix.com/programming/1742...e-via-dns.html
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

i'm pulling my hair out getting a solaris 8 box to work as a caching name server

i've gone through the sun docs as well as a Solaris Network Admin book. while the book is fair, it lacks detail and i'm sure there are things it's missing on getting a caching only name server working. as for the sun docs... what it has is really miserable. i can't make anything out of it. ... (4 Replies)
Discussion started by: xyyz
4 Replies

2. UNIX for Dummies Questions & Answers

home network - can you have a primary name server, or only a caching-only name server

i'm setting up a solaris 9 box to be my home network's DNS server. actually it's up and running, but it's set as a caching-only name server. can i set it up to be the primary name server? what are the advantages if i can set it up to be a primary name server vs. a caching only name server? (3 Replies)
Discussion started by: xyyz
3 Replies

3. UNIX for Dummies Questions & Answers

Odd Control Character issue ^A

Sorry to bug you, but my sed is failing me, I have a file auto generated from abinitio, it has a string of chars ending with a line break, and then it has added a ^A character, I can remove this is vi by using the following %s/^A//g (where ^A is ctrl v and control A), however when I try to sed... (1 Reply)
Discussion started by: badg3r
1 Replies

4. SuSE

named service issue on Suse

Hi Experts, I have a virtual server of SUSE Linux Enterprise Server 10 (x86_64). I am having strange issue of Naming services. Every 1 or 2 hours, named service stops working on this server and then I have to start it from "/etc/init./named start" I am not getting clue, where should I start... (0 Replies)
Discussion started by: solaris_1977
0 Replies

5. IP Networking

Named - DNS Server - within Firewall

I spent hours trying to create a system where the name server returns a value of 192.168.100.5 locally, but 209.137.nnn.nnn for requests outside of the firewall. If I run "nslookup mail.mydomain.com" from a machine inside the firewall, the 192.168 number is returned, but if I do "nslookup... (3 Replies)
Discussion started by: jgt
3 Replies

6. BSD

/etc/rc.d/named restart issue (command not found)

Guys, I am new to FreeBSD. I have this weird issue where when i issue the command "/etc/rc.d/named restart" i get --> command not found. I am running BIND 9.6.-ESV-R3 on FreeBSD 8.2 I have added named_enable="YES" in rc.conf as per manual named works great: No issue there. I just would like... (3 Replies)
Discussion started by: zongo
3 Replies

7. Shell Programming and Scripting

Odd looping issue with NET::FTP and Proftpd

Hello, I'm a UNIX SysAdmin at a large webhosting company and we have a vendor that provides a service which involves the ftp'ing of files from their servers to ours. They initiate FTP using a perl script with NET::FTP. When they try to transfer files (and delete files over ftp), there is... (3 Replies)
Discussion started by: tmmgeekette
3 Replies

8. UNIX for Dummies Questions & Answers

Reverse lookup issue

I came back to my solaris 10 system after a week of being gone and xterm no longer work. I checked into it and the system doesn't reverse lookup my client system. There is a manual entry for my system in the /etc/hosts file and a forward lookup works fine, but I still can't get reverse lookup. Any... (0 Replies)
Discussion started by: clogan1981
0 Replies

9. Red Hat

Squid Caching Issue

Hi frnds I recently configured Squid 2.5 stable version on my redhat machine.Caches are storing in my disk (/var/spool/squid) but my access.log file always shows tcp_miss for every site i access as well as store.log file shows release on every action. some of the records of my... (6 Replies)
Discussion started by: Vaibhav.T
6 Replies

10. Red Hat

DNS reverse lookup issue

Hi guys. Ok so let me lay out my configs. I can do a NSlookup from client to server BUT NOT a reverse lookup. DNS server: Optimus.jaydomain.com IP : 192.168.1.50 DNS Client: Megatron.jaydomain.com IP : 192.168.1.60 On Sever: # cat /etc/named.conf // // named.conf // // Provided... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies
NSLOOKUP(1)                                                            BIND9                                                           NSLOOKUP(1)

NAME
nslookup - query Internet name servers interactively SYNOPSIS
nslookup [-option] [name | -] [server] DESCRIPTION
Nslookup is a program to query Internet domain name servers. Nslookup has two modes: interactive and non-interactive. Interactive mode allows the user to query name servers for information about various hosts and domains or to print a list of hosts in a domain. Non-interactive mode is used to print just the name and requested information for a host or domain. ARGUMENTS
Interactive mode is entered in the following cases: 1. when no arguments are given (the default name server will be used) 2. when the first argument is a hyphen (-) and the second argument is the host name or Internet address of a name server. Non-interactive mode is used when the name or Internet address of the host to be looked up is given as the first argument. The optional second argument specifies the host name or address of a name server. Options can also be specified on the command line if they precede the arguments and are prefixed with a hyphen. For example, to change the default query type to host information, and the initial timeout to 10 seconds, type: nslookup -query=hinfo -timeout=10 The -version option causes nslookup to print the version number and immediately exits. INTERACTIVE COMMANDS
host [server] Look up information for host using the current default server or using server, if specified. If host is an Internet address and the query type is A or PTR, the name of the host is returned. If host is a name and does not have a trailing period, the search list is used to qualify the name. To look up a host not in the current domain, append a period to the name. server domain lserver domain Change the default server to domain; lserver uses the initial server to look up information about domain, while server uses the current default server. If an authoritative answer can't be found, the names of servers that might have the answer are returned. root not implemented finger not implemented ls not implemented view not implemented help not implemented ? not implemented exit Exits the program. set keyword[=value] This command is used to change state information that affects the lookups. Valid keywords are: all Prints the current values of the frequently used options to set. Information about the current default server and host is also printed. class=value Change the query class to one of: IN the Internet class CH the Chaos class HS the Hesiod class ANY wildcard The class specifies the protocol group of the information. (Default = IN; abbreviation = cl) [no]debug Turn on or off the display of the full response packet and any intermediate response packets when searching. (Default = nodebug; abbreviation = [no]deb) [no]d2 Turn debugging mode on or off. This displays more about what nslookup is doing. (Default = nod2) domain=name Sets the search list to name. [no]search If the lookup request contains at least one period but doesn't end with a trailing period, append the domain names in the domain search list to the request until an answer is received. (Default = search) port=value Change the default TCP/UDP name server port to value. (Default = 53; abbreviation = po) querytype=value type=value Change the type of the information query. (Default = A; abbreviations = q, ty) [no]recurse Tell the name server to query other servers if it does not have the information. (Default = recurse; abbreviation = [no]rec) ndots=number Set the number of dots (label separators) in a domain that will disable searching. Absolute names always stop searching. retry=number Set the number of retries to number. timeout=number Change the initial timeout interval for waiting for a reply to number seconds. [no]vc Always use a virtual circuit when sending requests to the server. (Default = novc) [no]fail Try the next nameserver if a nameserver responds with SERVFAIL or a referral (nofail) or terminate query (fail) on such a response. (Default = nofail) RETURN VALUES
nslookup returns with an exit status of 1 if any query failed, and 0 otherwise. FILES
/etc/resolv.conf SEE ALSO
dig(1), host(1), named(8). AUTHOR
Internet Systems Consortium, Inc. COPYRIGHT
Copyright (C) 2004-2007, 2010, 2013-2017 Internet Systems Consortium, Inc. ("ISC") ISC 2014-01-24 NSLOOKUP(1)
All times are GMT -4. The time now is 06:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy