Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
Amahi uses "Bind" for its DNS, and Bind looks to the file /etc/named.conf for DNS-related configurations. You'll see in there some stuff that Amahi is in control of (eg the "zone" used by your network, et "home.com"). At the very bottom, you should see an include to "/etc/named.conf.local". This is where our magic will start. Basically, as su (or sudo) you need to open up this file and place an entry like this:
{{Text|<pre>
Text=zone "test.mydomainname.com" {
type master;
allow-query {any;};
};
}}</pre>
What this does is tell Bind that, for the domain "test.mydomainname.com", you want to go to the file "/etc/bind/test.mydomainname.com" to look up the configuration.
Right, now create the following folder: "/etc/bind/". In here, you can store all the config files for each "zone" you want to configure. Once you've done that, you can create the config file "/etc/bind/test.mydomainname.com". The contents of this should be like this:
{{Text|<pre>
Text=$TTL 604800
@ IN SOA ns.test.mydomainname.com. test.mydomainname.com. (
@ IN NS test.mydomainname.com.
test.mydomainname.com. IN A 192.168.0.40
}}</pre>
Here are some things to note about this:
12,424

edits