Solved unique dns for each network

Hi all,
This my config:

Code:
subnet 176.12.12.0 netmask 255.255.255.0 {
    range 176.12.12.1 176.12.12.254;
    option routers 176.12.12.10;
}
subnet 176.1.1.0 netmask 255.255.255.0 {
    range 176.1.1.1 176.1.1.254;
    option routers 176.1.1.
}
I want to 176.12.12.0 used 8.8.8.8 for dns, and 176.1.1.0 used 4.2.2.4 for dns.

How should I config?
Thanks
 
Code:
subnet 176.12.12.0 netmask 255.255.255.0 {
    range 176.12.12.1 176.12.12.254;
    option routers 176.12.12.10;
    option domain-name-servers 8.8.8.8;
}
subnet 176.1.1.0 netmask 255.255.255.0 {
    range 176.1.1.1 176.1.1.254;
    option routers 176.1.1.1;
    option domain-name-servers 4.2.2.4;
}

Should also point out that you were missing a .1 and a trailing semicolon after 176.1.1.1 in case it is missing in your conf file for whatever IP address you are using.
 
Back
Top