How to add CNAME into BIND using webmin interface

Sometime it is easier to add a CNAME record to our DNS server via some DNS Manage interface.
Instead of keep adding A record for each new server , we just maintain one record with IP while the rest of it
just a list of CNAME record.. if happen to change the IP address. only one record need to be updated
instead of the whole bunch of record.. but it may took longer time to be effective..
which is more or less not so vary using other type of record too.

ok. for the one using webmin to manage DNS record.
there is no “CNAME record manage” per say.. but it had “ALIAS” which did the exactly the same thing..
managing the “CNAME record”..

just the tricky part to add it .
it must be exactly as the following rules :

1. only type the subdomain without the FQDN (Fully qualified domain name).
i.e if want to for “ ” just type “www”

2. the destination MUST end with a dot.
i.e “” NOT the “”
as the later will NOT work!

then… verify it is added correctly before applying changes to BIND.

then it shall response to dig request as below :

which is almost immediately if querying to that particular DNS server directly..
for querying using other DNS server you might need to wait for it to propagate first.

p/s : .. pretty weird.. isn’t it ?

hopefully can write on setting up DNS server at home .. shortest path .. afterwards.. haha

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.


Related Post

3 Responses

  1. HawkEYE says:

    I got better one after a few minute..
    by adding this two line before line 602 (/usr/share/system-config-network/netconfpkg/gui/

    if (not isinstance (host.Hostname, str)):

    now it works like charms again.. hehe.. 😎

  2. UncleOp says:

    This was helpful. Summary: if the /etc/hosts file is not well-formed, the python script doesn’t handle it well. In my case, somehow a long entry that was commented out got “line wrapped”, leaving some uncommented garbage on the next line. Fixing the hosts file or adding the above patch “worked”. It seems that some complaint to the user should be generated in such a case, though.

    • HawkEYE says:

      @UncleOp , Glad it help.. thanks for dropping by..


Anything to add?