dnsmasq for simple names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to set up a local dnsmasq server to resolve local hostnames on
my LAN. I'm not (for the moment) concerned with DHCP, just DNS. I'd
like to do this without defining a local doman, so that host foo just
resolves to foo's IP address. The dnsmasq.conf file appears to allow
this because defining a local domain is optional, however it isn't
working for me:

$ grep foo /etc/hosts
192.168.1.73 foo
$ dig foo

; <<>> DiG 9.10.3-P2-RedHat-9.10.3-7.P2.fc23 <<>> foo
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37194
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;foo.                          IN      A

;; ANSWER SECTION:
foo.                   30      IN      A       nnn.nnn.nnn.nnn

(That IP corresponds to some random host somewhere, nothing to do with
me).

No doubt this is something very stupid but a hint would be appreciated.
Note that I have blocked DNS referrals for unqualified names (option
domain-needed)

poc

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux