Re: What is the difference between "No address associated with name" and "Unknown host"

2006-12-04 Thread Abdullah Al-Marrie

On 12/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

What is the difference between "No address associated with name"
and "Unknown host":

$ ping accounts.eirtrade.ie
ping: cannot resolve accounts.eirtrade.ie: No address associated with name

and

$ ping accounts.eirtrade.i
ping: cannot resolve accounts.eirtrade.i: Unknown host

The source of my interest is the next.

My sendmail receives mail from senders with domains like the first,
but rejects mail from the last:


$ telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 host.my.domain ESMTP Sendmail 8.13.7/8.13.6; Mon, 4 Dec 2006 21:38:50 +0200
(EET)
HELO localhost
250 host.my.domain Hello localhost [127.0.0.1], pleased to meet you
MAIL From: [EMAIL PROTECTED]
250 2.1.0 [EMAIL PROTECTED] Sender ok
RSET
250 2.0.0 Reset state
MAIL From: [EMAIL PROTECTED]
553 5.1.8 [EMAIL PROTECTED] Domain of sender address
[EMAIL PROTECTED] does not exist
QUIT
221 2.0.0 host.my.domain closing connection
Connection closed by foreign host.


Elisej Babenko


I get the same problem with my laptop which uses DHCP in FreeBSD
6.2-RC1 and earlier was using 6.1-S, this happens to me regurarely
even I just opened an address in FF, then again trying to open same
host via FF.

Is there away to cache dns locally in my laptop?

Thank you,

-Abdullah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What is the difference between "No address associated with name" and "Unknown host"

2006-12-04 Thread Nagy László Zsolt




If you have the "dig" command available on your machine, you can read 
its documentation, and play with it. It will make things clear. Look 
below: in the first case, there is no A record, but there is a SOA 
record. However, the hostname of the SOA is different from the queried 
hostname. In the second case, there is no A record, there is a SOA and 
the hostname of the SOA and the queried hostname are the same. So in 
the first case, we cannot know if the host is registered at all. In 
the second case, the hostname is registered for sure, but it has no A 
record. (However, subdomains like www.eirtrade.ie can have A records...)


#dig accounts.eirtrade.ie
Sorry, try this with accounts.eirtrade.i instead of 
accounts.eirtrade.ie. :-)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What is the difference between "No address associated with name" and "Unknown host"

2006-12-04 Thread Chuck Swiger

On Dec 4, 2006, at 11:54 AM, [EMAIL PROTECTED] wrote:

What is the difference between "No address associated with name"
and "Unknown host":


The former means there is no A record in the DNS for the hostname,  
but there is a DNS record for the domain and that it answered the  
question as such.  The latter indicates that the domain itself was  
invalid, and you got an NXDOMAIN response rather than NOERROR.



$ ping accounts.eirtrade.ie
ping: cannot resolve accounts.eirtrade.ie: No address associated  
with name


and

$ ping accounts.eirtrade.i
ping: cannot resolve accounts.eirtrade.i: Unknown host


% dig accounts.eirtrade.ie

; <<>> DiG 9.3.2 <<>> accounts.eirtrade.ie
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53319
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;accounts.eirtrade.ie.  IN  A

;; AUTHORITY SECTION:
eirtrade.ie.10703   IN  SOA auth01.ns.eircom.net.  
hostmaster.eircom.net. 2001031301 28800 7200 604800 86400


;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Dec  4 15:09:19 2006
;; MSG SIZE  rcvd: 105

% dig accounts.eirtrade.i

; <<>> DiG 9.3.2 <<>> accounts.eirtrade.i
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 18893
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;accounts.eirtrade.i.   IN  A

;; AUTHORITY SECTION:
.   10718   IN  SOA A.ROOT-SERVERS.NET.  
NSTLD.VERISIGN-GRS.COM. 2006120400 1800 900 604800 86400


;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Dec  4 15:10:35 2006
;; MSG SIZE  rcvd: 112

--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What is the difference between "No address associated with name" and "Unknown host"

2006-12-04 Thread Nagy László Zsolt

[EMAIL PROTECTED] wrote:
What is the difference between "No address associated with name" 
and "Unknown host":


$ ping accounts.eirtrade.ie
ping: cannot resolve accounts.eirtrade.ie: No address associated with name

and

$ ping accounts.eirtrade.i
ping: cannot resolve accounts.eirtrade.i: Unknown host
  
If the host is unknown, then it means that the primary domain name 
server is not registered for the given domain. Because the domain name 
server cannot be found, it is not possible to tell the IP address of the 
given hostname.


You get the second message when there is a primary domain name server 
for the given domain, but it does not return any IP address for your 
(named) address. It means that there is no A record for the given hostname.


For me, I get these results:

#ping acconts.eirtrade.ie
ping: cannot resolve acconts.eirtrade.ie: Unknown host
#ping eirtrade.ie
ping: cannot resolve eirtrade.ie: No address associated with name

If you have the "dig" command available on your machine, you can read 
its documentation, and play with it. It will make things clear. Look 
below: in the first case, there is no A record, but there is a SOA 
record. However, the hostname of the SOA is different from the queried 
hostname. In the second case, there is no A record, there is a SOA and 
the hostname of the SOA and the queried hostname are the same. So in the 
first case, we cannot know if the host is registered at all. In the 
second case, the hostname is registered for sure, but it has no A 
record. (However, subdomains like www.eirtrade.ie can have A records...)


#dig accounts.eirtrade.ie

; <<>> DiG 9.3.2 <<>> accounts.eirtrade.ie
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50610
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;accounts.eirtrade.ie.  IN  A

;; AUTHORITY SECTION:
eirtrade.ie.10515   IN  SOA auth01.ns.eircom.net. 
hostmaster.eircom.net. 2001031301 28800 7200 604800 86400


;; Query time: 1 msec
;; SERVER: 195.228.240.249#53(195.228.240.249)
;; WHEN: Mon Dec  4 15:02:25 2006
;; MSG SIZE  rcvd: 105

#dig eirtrade.ie

; <<>> DiG 9.3.2 <<>> eirtrade.ie
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 932
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;eirtrade.ie.   IN  A

;; AUTHORITY SECTION:
eirtrade.ie.10800   IN  SOA auth01.ns.eircom.net. 
hostmaster.eircom.net. 2001031301 28800 7200 604800 86400


;; Query time: 37 msec
;; SERVER: 195.228.240.249#53(195.228.240.249)
;; WHEN: Mon Dec  4 15:03:17 2006
;; MSG SIZE  rcvd: 96

Best,

  Laszlo

p.s.: I think I'm right, but please do not trust me blindly. :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


What is the difference between "No address associated with name" and "Unknown host"

2006-12-04 Thread a
What is the difference between "No address associated with name" 
and "Unknown host":

$ ping accounts.eirtrade.ie
ping: cannot resolve accounts.eirtrade.ie: No address associated with name

and

$ ping accounts.eirtrade.i
ping: cannot resolve accounts.eirtrade.i: Unknown host

The source of my interest is the next.

My sendmail receives mail from senders with domains like the first,
but rejects mail from the last:


$ telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 host.my.domain ESMTP Sendmail 8.13.7/8.13.6; Mon, 4 Dec 2006 21:38:50 +0200
(EET)
HELO localhost
250 host.my.domain Hello localhost [127.0.0.1], pleased to meet you
MAIL From: [EMAIL PROTECTED]
250 2.1.0 [EMAIL PROTECTED] Sender ok
RSET
250 2.0.0 Reset state
MAIL From: [EMAIL PROTECTED]
553 5.1.8 [EMAIL PROTECTED] Domain of sender address 
[EMAIL PROTECTED] does not exist
QUIT
221 2.0.0 host.my.domain closing connection
Connection closed by foreign host.


Elisej Babenko
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"