cancel
Showing results for 
Search instead for 
Did you mean: 

fully qualified name

 
KINGSLEY_1
Regular Advisor

fully qualified name

Hi All!

I have an intergrity server with hp-ux 11.23. In the /etc/hosts file i have hammer.mog.gov.gh as the fully qualified name for the server.

When i do "ping hammer" i get a good response. But when i do "ping hammer.mof.gov.gh" it tells me the hosts is unknown.

Can someone help me.
7 REPLIES

Re: fully qualified name

Hi,

Is it a typo?
/etc/hosts/hammer.mog.gov.gh

Ping hammer.mof.gov.gh

mof of mog?

Regards,
Roland
Tor-Arne Nostdal
Trusted Contributor

Re: fully qualified name

Do you resolve addresses from hosts file first, or do you try to resolve from DNS server first?

Check out your nsswitch.conf and resolv.conf

/2r
I'm trying to become President of the state I'm in...
Tor-Arne Nostdal
Trusted Contributor

Re: fully qualified name

In your /etc/nsswitch.conf you might have a default setting for dns lookup first, like this:
hosts: dns [NOTFOUND=return] nis [NOTFOUND=return] files
First dns, then nis, and at last files (eg. /etc/hosts)

If so, I assume this would be more correct for you:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

I'm trying to become President of the state I'm in...
Horia Chirculescu
Honored Contributor

Re: fully qualified name

Hello,


[ns]:# ping www.mof.gov.gh
PING mof.gov.gh (196.29.238.1) 56(84) bytes of data.
64 bytes from knet-196-29-238-1.elifegh.net (196.29.238.1): icmp_seq=1 ttl=49 time=178 ms
64 bytes from knet-196-29-238-1.elifegh.net (196.29.238.1): icmp_seq=2 ttl=50 time=176 ms
64 bytes from knet-196-29-238-1.elifegh.net (196.29.238.1): icmp_seq=3 ttl=51 time=176 ms
64 bytes from knet-196-29-238-1.elifegh.net (196.29.238.1): icmp_seq=4 ttl=51 time=175 ms

--- mof.gov.gh ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 175.405/176.664/178.256/1.079 ms
[ns]:# ping hammer.mof.gov.gh
ping: unknown host hammer.mof.gov.gh


If you are the owner of the subdomain

mof.gov.gh

then you should update the corresponding zone of your DNS in order to let others know that you have a fully qualified name.

Otherwise, you will only be able to resolve locally the full name by adding this line to /etc/hosts:

hammer.mof.gov.gh 192.168.1.1

Modify the line to use your real IP address.

Best regards
Horia.
Best regards from Romania,
Horia.

Re: fully qualified name

From your profile:
I have assigned points to 0 of 46 responses to my questions
Tor-Arne Nostdal
Trusted Contributor

Re: fully qualified name

http://forums11.itrc.hp.com/service/forums/helptips.do?#33
I'm trying to become President of the state I'm in...
Vishu
Trusted Contributor

Re: fully qualified name

Hi,

lot of confusion between mog and mof. so, if you doing typo (either at command line or at /etc/hosts), then i hope you got it right now.

Else, check your /etc/nsswitch.conf that how is your hostname is getting resolved and change it to files (if you want to resolve it by /etc/hosts).