Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

dns not resolving for LAN domain

$
0
0

I'm trying and failing to get local name resolution for my LAN (crizzle.lan)

seth@MBP ~ $ nslookup alexa.crizzle.lan
Server:		172.16.0.1
Address:	172.16.0.1#53

This is my dnsmasq config:

ubnt@router01# show service dns forwarding
cache-size 150
listen-on eth2
listen-on eth1.3
name-server 8.8.8.8
options localise-queries
options domain-needed
options log-queries
options bogus-priv
options expand-hosts
options domain=crizzle.lan
options listen-address=127.0.0.1
options local=/crizzle.lan/
options local=/.16.172.in-addr.arpa/
options local=/.127.in-addr.arpa/

This is my DHCP config: 

 

shared-network-name PrivateDHCP {
     authoritative enable
     subnet 172.16.0.0/23 {
         default-router 172.16.0.1
         dns-server 172.16.0.1
         domain-name crizzle.lan
         lease 86400
         start 172.16.1.1 {
             stop 172.16.1.254
         }

         static-mapping alexa {
             ip-address 172.16.0.11
             mac-address 44:65:0d:89:e7:b0
         }

This is what the log says: 

ubnt@router01# tail  /var/log/dnsmasq.log
Jul 28 00:26:14 dnsmasq[2779]: started, version 2.75-1-ubnt2 cachesize 150
Jul 28 00:26:14 dnsmasq[2779]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Jul 28 00:26:14 dnsmasq[2779]: using local addresses only for domain 127.in-addr.arpa
Jul 28 00:26:14 dnsmasq[2779]: using local addresses only for domain 16.172.in-addr.arpa
Jul 28 00:26:14 dnsmasq[2779]: using local addresses only for domain crizzle.lan
Jul 28 00:26:14 dnsmasq[2779]: using nameserver 8.8.8.8#53
Jul 28 00:26:14 dnsmasq[2779]: read /etc/hosts - 10 addresses

This what /etc/hosts says: 

172.16.0.7 au32.crizzle.lan au32
127.0.1.1	 router01	 #vyatta entry
127.0.1.1	 router01.crizzle.lan	 #vyatta entry
172.16.0.1	 router01 fw01 gw01 	 #vyatta entry

This is what static mapping says: 

ubnt@router01# show system static-host-mapping
 host-name alexa {
     inet 172.16.0.11
 }
 host-name router01 {
     alias fw01
     alias gw01
     inet 172.16.0.1
 }

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>