Below is the config ( I removed some lines to make it a bit readable) 

 

----------------------------------------------------------------------------------------------------

# Configuration file for dnsmasq.

#

# Format is one option per line, legal options are the same

# as the long options legal on the command line. See

# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.

 

# Never forward plain names (without a dot or domain part)

domain-needed

# Never forward addresses in the non-routed address spaces.

bogus-priv

 

dhcp-authoritative

#dhcp-sequential-ip

 

strict-order

 

 

server=192.168.120.2

server=192.168.140.2

server=192.168.141.2

server=8.8.8.8

 

expand-hosts

 

domain=fork.local

 

dhcp-range=interface:net0,192.168.120.30,192.168.120.250,24h

dhcp-range=interface:net1,192.168.140.30,192.168.140.250,24h

dhcp-range=interface:net2,192.168.141.30,192.168.141.250,24h

 

 

# Override the default route supplied by dnsmasq, which assumes the

# router is the same machine as the one running dnsmasq.

dhcp-option=net0,3,192.168.120.1

dhcp-option=net1,3,192.168.140.1

dhcp-option=net2,3,192.168.141.1

dhcp-option=net0,6,192.168.120.2,8.8.8.8,8.8.4.4

dhcp-option=net1,6,192.168.140.2,8.8.8.8,8.8.4.4

dhcp-option=net2,6,192.168.141.2,8.8.8.8,8.8.4.4

 

dhcp-host=00:11:32:0e:b5:48,NAS01,192.168.120.60

dhcp-host=00:11:32:2f:37:bf,NAS02,192.168.120.61

#Some more entries are here, but they function the same

 

read-ethers

 

# Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5

dhcp-option=net0,option:ntp-server,192.168.120.2

dhcp-option=net1,option:ntp-server,192.168.140.2

dhcp-option=net2,option:ntp-server,192.168.141.2

 

# Send an empty WPAD option. This may be REQUIRED to get windows 7 to behave.

dhcp-option=252,"\n"

 

dhcp-option=vendor:MSFT,2,1i

 

dhcp-leasefile=/opt/local/etc/dnsmasq.leases

 

cache-size=650

 

log-dhcp

log-facility=/var/log/dnsmasq

localise-queries

 

----------------------------------------------------------------------------------------------------

 

Van: Humberto Ramirez [mailto:[email protected]] 
Verzonden: dinsdag 30 mei 2017 15:19
Aan: [email protected]
Onderwerp: Re: [smartos-discuss] DNS server in zone

 

How does your dnsmasq.conf looks? 

 

 

 

On May 30, 2017 8:33 AM, "the outsider" <[email protected] 
<mailto:[email protected]> > wrote:

I try to get DNSMASQ running inside a plain SmartOS zone with 3 nics. 

 

Each nic is connected to a switchport and each switchport has its own VLAN 
defined.

 

There is no VLAN config on SmartOS , nor on the zone itself.

 

These nics are defined as follows:

 

[

  {

    "interface": "net0",

    "mac": "92:dd:b6:c5:20:60",

    "nic_tag": "admin",

    "gateway": "192.168.120.1",

    "gateways": [

      "192.168.120.1"

    ],

    "netmask": "255.255.255.0",

    "ip": "192.168.120.2",

    "ips": [

      "192.168.120.2/24 <http://192.168.120.2/24> "

    ],

    "dhcp_server": "1",

    "allow_dhcp_spoofing": true,

    "allow_ip_spoofing": true,

    "primary": true

  },

  {

    "interface": "net1",

    "mac": "92:dd:b6:c5:20:61",

    "nic_tag": "nicp4r",

    "netmask": "255.255.255.0",

    "ip": "192.168.140.2",

    "ips": [

      "192.168.140.2/24 <http://192.168.140.2/24> "

    ],

    "dhcp_server": "1",

    "allow_dhcp_spoofing": true,

    "allow_ip_spoofing": true

  },

  {

    "interface": "net2",

    "mac": "92:dd:b6:c5:20:62",

    "nic_tag": "demo",

    "netmask": "255.255.255.0",

    "ip": "192.168.141.2",

    "ips": [

      "192.168.141.2/24 <http://192.168.141.2/24> "

    ],

    "dhcp_server": "1",

    "allow_dhcp_spoofing": true,

    "allow_ip_spoofing": true

  }

]

 

It all works from time to time, but it lags and stalls a lot. 

 

So I have 3 subnets:

Net0 -> 192.168.120.x

Net1 -> 192.168.140.x

Net2 -> 192.168.141.x 

 

Sometimes it all works great but after a few hours people start complaining 
about not getting an IP-address. 

 

Has anyone experience with this setup ? 

 


smartos-discuss |  <https://www.listbox.com/member/archive/184463/=now> 
Archives  <https://www.listbox.com/member/archive/rss/184463/27966043-4eecc9e4> 
|  <https://www.listbox.com/member/?&;> Modify Your Subscription

 <http://www.listbox.com/> 

 




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to