Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am wrtting the following file "/var/named/blast.hosts" and was wondering about the line highlighted in bold. Will DNS run without this line? I understand that it's a alias for the hostname but when would you use it?
@ IN SOA darkice.blast. root.darkice.blast. (
2006112100; Serial Number Year Month Day Serial Number
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
IN NS darkice.blast.
localhost IN A 127.0.0.1
darkice IN A 192.168.1.124
darkice IN A 172.16.87.1
client IN A 172.16.87.129
cl IN CNAME client
CNAME records are pointers (think of them as aliases). You can set them up so your system can be accessed by these aliases.
Say you wanted to have people think of your "darkice" like a black gem such as "onyx". You already have the address record equating darkice to the IP so you just create the CNAME:
onyx IN CNAME darkice.darkice.blast.
Anyone looking for onyx in that zone will find it and immediately go to the IP you assigned to darkice in the earlier A record.
Yes, you can run it without your cl cname. a CNAME is a canonical name or an alias or a nickname. Hence, connecting to cl.darkice.blast is the exact same thing as connecting to client.darkice.blast. People mostly use it for virtual hosts. For example, if you have www.example.com, ftp.example.com and webmail.example.com, all being hosted on the same IP address then you can create CNAME's for all of them but one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.