1830247 Members
8984 Online
110000 Solutions
New Discussion

redhat HOSTNAME & hosts

 
tuhin
Occasional Advisor

redhat HOSTNAME & hosts

i am using redhat 7.1. my HOSTNAME is "ns.lx01.com" and hosts file entry is -
11.11.11.11 ns.lx01.com ns www mail #(with Alices)
127.0.0.1 localhost
and my dns has entry -
NS ns.lx01.com.
MX 10 mail.lx01.com.
lx01.com. A 11.11.11.11 (*)
ns A 11.11.11.11
mail CNAME ns.lx01.com.
www CNAME ns.lx01.com.
localhost 127.0.0.1 (**)
pls confirm me is this correct specialy *** mark
and do i need to add . end of localhost A entry?
2 REPLIES 2
U.SivaKumar_2
Honored Contributor

Re: redhat HOSTNAME & hosts

Hi,
you are wrong. It should be like this
lx01 IN A 11.11.11.11

regards,
U.SivaKumar
Innovations are made when conventions are broken
tuhin
Occasional Advisor

Re: redhat HOSTNAME & hosts

but if i enter lx01 11.11.11.11 without and ending .,
it should lx01.lx01.com but i wants my dns name is lx01.com on ip 11.11.11.11,
is this so?
and pls confirm me do i need to add localhost 127.0.0.1
adn do i have to end with .,
i mean: localhost. A 127.0.0.1


what about my hosts file name entry.