LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-29-2012, 03:49 AM   #1
sunrised24
LQ Newbie
 
Registered: Jan 2012
Location: Chennai,INDIA
Distribution: Centos5.4,SuseLinux,Rhel5,Ubuntu 10.04
Posts: 27

Rep: Reputation: Disabled
No address AA RECORD found error in ubuntu dnsconfiguration error


Hi
i had configured dns in ubuntu machine.But it dig sample.etl.com as well as ipaddress but dns does int resolving off .



Quote:
root@sample:/etc/bind$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.

zone example.com/IN: not loaded due to errors.
Generated by NetworkManager
nameserver 202.71.xx.67
nameserver 202.71.xx.67
root@sample:~$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
root@sample:~$ cat /etc/bind.192
cat: /etc/bind.192: No such file or directory
root@sample:~$ cat /etc/bind/db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
5 IN PTR sample.example.com.
root@sample:~$ named-checkzone example.com /etc/bind/db.example.com
zone example.com/IN: loaded serial 2
OK
root@sample:~$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
root@sample:~$ clear

root@sample:~$ cat /etc/bind/
cat: /etc/bind/: Is a directory
root@sample:~$ cd /etc/bind/
root@sample:/etc/bind$ ls
bind.keys db.192 db.root named.conf.options
db.0 db.empty named.conf named.conf.options.bak
db.127 db.example.com named.conf.default-zones rndc.key
db.255 db.local named.conf.local zones.rfc1918
root@sample:/etc/bind$ cat db.example.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
@ IN A 127.0.0.1
@ IN AAAA ::1
sample IN A 192.168.1.5
root@sample:/etc/bind$ cat named.conf.local
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";


zone "example.com" {
type master;
file "/etc/bind/db.example.com";
};
zone "1.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.192";
};
root@sample:/etc/bind$ cat db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
235 IN PTR sample.example.com.
root@sample:/etc/bind$ named-checkzone example.com /etc/bind/db.example.com
zone example.com/IN: loaded serial 2
OK
root@sample:/etc/bind$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has Generated by NetworkManager
nameserver 202.71.xx.67
nameserver 202.71.xx.67
root@sample:~$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
root@sample:~$ cat /etc/bind.192
cat: /etc/bind.192: No such file or directory
Quote:
root@sample:~$ cat /etc/bind/db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
5 IN PTR sample.example.com.
root@sample:~$ named-checkzone example.com /etc/bind/db.example.com
zone example.com/IN: loaded serial 2
OK
root@sample:~$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
root@sample:~$ clear

root@sample:~$ cat /etc/bind/
cat: /etc/bind/: Is a directory
root@sample:~$ cd /etc/bind/
root@sample:/etc/bind$ ls
bind.keys db.192 db.root named.conf.options
db.0 db.empty named.conf named.conf.options.bak
db.127 db.example.com named.conf.default-zones rndc.key
db.255 db.local named.conf.local zones.rfc1918
root@sample:/etc/bind$ cat db.example.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
@ IN A 127.0.0.1
@ IN AAAA ::1
sample IN A 192.168.1.5
root@sample:/etc/bind$ cat named.conf.local
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";


zone "example.com" {
type master;
file "/etc/bind/db.example.com";
};
zone "1.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.192";
};
root@sample:/etc/bind$ cat db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
235 IN PTR sample.example.com.
root@sample:/etc/bind$ named-checkzone example.com /etc/bind/db.example.com
zone example.com/IN: loaded serial 2
OK




ecare@ecare:~$ dig sample.example.com

; <<>> DiG 9.7.0-P1 <<>> sample.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 62202
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;sample.example.com. IN A

;; AUTHORITY SECTION:
etl.com. 9771 IN SOA ns.domainnetwork.se. hostmaster.melbourneitcbs.com. 2011092801 21600 3600 2419200 86400

;; Query time: 91 msec
;; SERVER: 202.71.xx.67#53(202.71.xx.67)
;; WHEN: Wed Feb 29 15:16:34 2012
;; MSG SIZE rcvd: 112

Quote:
ecare@ecare:~$ dig 192.168.1.5

; <<>> DiG 9.7.0-P1 <<>> 192.168.1.5
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58326
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;192.168.1.5. IN A

;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2012022900 1800 900 604800 86400

;; Query time: 82 msec
;; SERVER: 202.71.xx.67#53(202.71.xx.67)
;; WHEN: Wed Feb 29 15:16:45 2012
;; MSG SIZE rcvd: 105

Last edited by sunrised24; 02-29-2012 at 03:50 AM.
 
Old 02-29-2012, 04:59 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
ecare@ecare:~$ dig sample.example.com
<-snip->
;; Query time: 91 msec
;; SERVER: 202.71.xx.67#53(202.71.xx.67)
;; WHEN: Wed Feb 29 15:16:34 2012
;; MSG SIZE rcvd: 112
You got a response from 202.71.xx.67, not from your dns. You should add it 1st in /etc/resolv.conf if you want to use it as a resolver for your domain. Or else run
Code:
dig sample.example.com @localhost
to get your answer.

If you want to do reverse lookups you need the -x option in dig:
Code:
dig -x 192.168.1.5 @localhost
 
Old 02-29-2012, 06:25 AM   #3
sunrised24
LQ Newbie
 
Registered: Jan 2012
Location: Chennai,INDIA
Distribution: Centos5.4,SuseLinux,Rhel5,Ubuntu 10.04
Posts: 27

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

i could able to resolve the my domain im localhost ,when i nsllokup domain name its working and getting resolve it i could int resolve the ipaddress using nslookup .When i try to send mail through sendmail im getting out error due to dns issue ,


Quote:
Feb 29 17:46:28 s-desktop sm-mta[17987]: q1TCGO6N017985: q1TCGS6N017987: DSN: User unknown

:~$ nslookup etl.com
Server: 202.71.xx.67
Address: 202.71.xx.67#53

Non-authoritative answer:
Name: example.com
Address: 203.27.227.85

:~$ nslookup 61.8.144.235
Server: 202.71.xx.67
Address: 202.71.xx.67#53

** server can't find 235.144.8.61.in-addr.arpa.: NXDOMAIN

ecare@ecare:~$


sample@sample:~$ dig sample.example.com @localhost

; <<>> DiG 9.7.0-P1 <<>> sample.example.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29218
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;sample.example.com. IN A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Feb 29 17:45:28 2012
;; MSG SIZE rcvd: 31

sample@sample:~$ dig 192.168.1.5 @localhost

; <<>> DiG 9.7.0-P1 <<>> 192.168.1.5 @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 34881
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;192.168.1.5. IN A

;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2012022900 1800 900 604800 86400

;; Query time: 2261 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Feb 29 17:45:47 2012
;; MSG SIZE rcvd: 105



:~$ nslookup etl.com
Server: 202.71.xx.67
Address: 202.71.xx.67#53

Non-authoritative answer:
Name: example.com
Address: 203.27.227.85

:~$ nslookup 10.200.1.5
Server: 202.71.xx.67
Address: 202.71.xx.67#53

** server can't find 5.1.200.10.in-addr.arpa.: NXDOMAIN

ecare@ecare:~$

sample@sample:~$ echo mail | mail -h hello "saravana@sampletechlabs.com"
mail: invalid option -- h
Try `mail --help' or `mail --usage' for more information.
sample@sample:~$ echo mail | mail -s hello "saravana@sampletechlabs.com"
sample@sample:~$ nslookup sample.example.com
Server: 202.71.xx.67
Address: 202.71.xx.67#53

** server can't find sample.example.com: NXDOMAIN

sample@sample:~$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 202.71.xx.67
nameserver 202.71.xx.67
sample@sample:~$
 
Old 02-29-2012, 07:24 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
When i try to send mail through sendmail im getting out error due to dns issue ,
Quote:
Feb 29 17:46:28 s-desktop sm-mta[17987]: q1TCGO6N017985: q1TCGS6N017987: DSN: User unknown
This is irrelevant to dns in a first place. You get a "User unknown" from the remote smtp


Quote:
nslookup etl.com
<-snip->
Address: 203.27.227.85

:~$ nslookup 61.8.144.235
<-snip->
** server can't find 235.144.8.61.in-addr.arpa.: NXDOMAIN
Is you domain etl.com? If it is then why you're trying to resolve 61.8.144.235? Are you authoritative for 61.8.144.235 (i.e. the 144.8.61.in-addr.arpa zone)?

Add as the 1st entry in /etc/resolv.conf your nameserver, or configure NetworkManager to do so

Quote:
dig sample.example.com @localhost

; <<>> DiG 9.7.0-P1 <<>> sample.example.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29218
You get a SERVFAIL even from your own nameserver


Quote:
sample@sample:~$ dig 192.168.1.5 @localhost
Again. If you want to do reverse lookups you need the -x switch in dig, like this:
Code:
dig -x 192.168.1.5 @localhost

Quote:
nslookup 10.200.1.5
Server: 202.71.xx.67
Address: 202.71.xx.67#53

** server can't find 5.1.200.10.in-addr.arpa.: NXDOMAIN
Dunno why you tried to resolve 10.200.1.5, but you cannot use public nameservers (like 202.71.xx.67) to resolve private IPs


Quote:
echo mail | mail -s hello "saravana@sampletechlabs.com"
So what is the result? BTW there is no such domain.

Last edited by bathory; 02-29-2012 at 05:11 PM. Reason: typos
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Error: Address not found in virtual alias table medspec Linux - Newbie 3 09-08-2010 07:49 AM
Ubuntu static IP address assignment error tebucky Linux - Networking 2 08-06-2009 10:43 AM
X problem on Ubuntu 6.10 -- No screens found error Brian5 Ubuntu 3 01-02-2007 04:20 AM
Ubuntu 5.10 preview no screens found error steve.ppunk Linux - Software 2 10-01-2005 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration