[Dnsmasq-discuss] resolving server's hostname
Carl Karsten
carl at nextdayvideo.com
Sat Feb 18 15:31:19 GMT 2017
dc10b is the dnsmasq server
I am using a modified version of this:
https://anonscm.debian.org/git/debconf-video/ansible.git/tree/roles/dhcp-server
I haven't checked in the mods yet because things are still a little wonky.
git diff ... skimmed, don't see anything that would affect dnsmasq.
juser at dc10b:~$ cat /etc/dnsmasq.d/local.conf
## Ansible managed
interface=eth-local
domain=lca2017.lan
dhcp-range=10.20.1.10,10.20.1.254,6h
dhcp-option-force=210,/srv/tftp/
dhcp-boot=pxelinux.0
dhcp-authoritative
enable-tftp
tftp-root=/srv/tftp
Hmm, on an openwtt ap running dnsmasq:
root at tpap:~# cat /etc/resolv.conf
search lan
nameserver 127.0.0.1
root at tpap:~# cat /etc/hosts
127.0.0.1 localhost
root at tpap:~# nslookup tpap
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost
Name: tpap
Address 1: 192.168.1.2 tpap.lan
On Sat, Feb 18, 2017 at 6:15 AM, Albert ARIBAUD <albert.aribaud at free.fr>
wrote:
> Hi Carl,
>
> Le Fri, 17 Feb 2017 02:06:16 -0600
> Carl Karsten <carl at nextdayvideo.com> a écrit:
>
> > juser at dc10b:~$ host dc10b
> > dc10b has address 127.0.1.1
> >
> > It should be 10.20.1.3
> >
> > How do I make that happen?
>
> Hmm... Can you elaborate on the context of your problem? This does not
> happen to me -- my machine even has an entry in its own /etc/hosts with
> its name tied to 127.0.0.1 but a host or dig will return its LAN
> address.
>
> Amicalement,
> --
> Albert.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20170218/3ab3e865/attachment.html>
More information about the Dnsmasq-discuss
mailing list