[olug] Dig +search question...

Dan Linder dan at linder.org
Mon Apr 2 00:47:46 UTC 2012


I'm trying to setup a quick BIND9 DNS server for my internal home network
using Ubuntu 11.10 Bind9 packages.

When I run *"dig @localhost titan"* on my DNS server, I don't get an IP
address. When I run *"dig @localhost titan.linder.corp"* I get the answer I
expect.

When researching this, apparently dig has the "+search" option to use the
search field in the /etc/resolv.conf file, then the "*dig @localhost
+search titan*" returns the IP address as expected.

Did this change, or has dig always worked like that?  I am fairly certain a
have run "dig _shortname_" and it worked correctly...

Dan

Here are my relevant files:
*# cat -n /etc/resolv.conf *
     1 # Generated by NetworkManager
     2 search linder.corp
     3 domain linder.corp
     4 nameserver 127.0.0.1
     5 nameserver 68.13.16.30
     6 nameserver 68.13.16.25

*# cat -n db.linder_corp*
     1 ;
     2 ; BIND data file for local loopback interface
     3 ;
     4 $TTL 604800
     5 @ IN SOA localhost. root.localhost. (
     6      2 ; Serial
     7 604800 ; Refresh
     8  86400 ; Retry
     9 2419200 ; Expire
    10 604800 ) ; Negative Cache TTL
    11 ;
    12 @ IN NS localhost.
    13 @ IN A 127.0.0.1
    14 @ IN AAAA ::1
    15 ;
    16 titan IN A 192.168.1.19
    17 titan.linder.corp IN A 1.1.1.1

-- 
***************** ************* *********** ******* ***** *** **
"Quis custodiet ipsos custodes?"
    (Who can watch the watchmen?)
    -- from the Satires of Juvenal
"I do not fear computers, I fear the lack of them."
    -- Isaac Asimov (Author)
** *** ***** ******* *********** ************* *****************



More information about the OLUG mailing list