need to look up short names

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

need to look up short names

Todd Chester

Hi All,

Fedora 26
bind-chroot-9.11.1-2.P2.fc26.x86_64

I am stumped.   I need to be able to look up short names on my local network.

Long names work:

# host pop3.xxx.local
pop3.xxx.local is an alias for FedoraServer.xxx.local.
FedoraServer.xxx.local has address 192.168.255.12

But not short names:

# host pop3
Host pop3 not found: 3(NXDOMAIN)

My hosts.xxx look like this for pop3:
FedoraServer            A       192.168.255.12
pop3                    CNAME   FedoraServer

What am I missing?

Many thanks,
-T

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: need to look up short names

Darcy Kevin (FCA)

Appending suffixes to short names to make them legal DNS names, is considered the responsibility of the *client*, not the *server*.

 

Look up “resolver search list” (more Unix-ish/Linux-ish) or “suffix search list” (more Windows-ish), and you should find some useful information.

 

-          Kevin

 

 

From: bind-users [mailto:[hidden email]] On Behalf Of toddandmargo
Sent: Thursday, August 10, 2017 8:21 PM
To: [hidden email]
Subject: need to look up short names

 


Hi All,

Fedora 26
bind-chroot-9.11.1-2.P2.fc26.x86_64

I am stumped.   I need to be able to look up short names on my local network.

Long names work:

# host pop3.xxx.local
pop3.xxx.local is an alias for FedoraServer.xxx.local.
FedoraServer.xxx.local has address 192.168.255.12

But not short names:

# host pop3
Host pop3 not found: 3(NXDOMAIN)

My hosts.xxx look like this for pop3:
FedoraServer            A       192.168.255.12
pop3                    CNAME   FedoraServer

What am I missing?

Many thanks,
-T


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: need to look up short names

Bind-Users forum mailing list
In reply to this post by Todd Chester
On 08/10/2017 06:21 PM, toddandmargo wrote:
> Fedora 26

Fedora = Linux (vs Windows vs other)

> I am stumped.   I need to be able to look up short names on my local
> network.
...
> What am I missing?

domain and / or search configuration in /etc/resolv.conf

man resolv.conf



--
Grant. . . .
unix || die


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: need to look up short names

/dev/rob0
On Thu, Aug 10, 2017 at 08:07:00PM -0600,
   Grant Taylor via bind-users wrote:
> On 08/10/2017 06:21 PM, toddandmargo wrote:
> > I am stumped.  I need to be able to look up short names on my
> > local network.
> ...
> > What am I missing?
>
> domain and / or search configuration in /etc/resolv.conf
>
> man resolv.conf

Note that this still work for dig(1) and host(1) as per the OP's
examples.  But things like ping(1) and browsers will work with a
search domain.
--
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: need to look up short names

Bind-Users forum mailing list
On 08/10/2017 10:18 PM, /dev/rob0 wrote:
> Note that this still work for dig(1) and host(1) as per the OP's
> examples.  But things like ping(1) and browsers will work with a
> search domain.

Do you mean to say that the search / domain entry in /etc/resolv.conf do
/not/ work for dig / host?  (Or am I mis-reading your email?)

Do you know if there is a way to get nslookup* / dig / host to work with
the search domain?

It was my (mis)understanding that search / domain works for things that
use the system resolver libraries, which (I believe) nslookup* / dig /
host bypass and make (unqualified) DNS queries directly.

Please correct me if I'm wrong.



--
Grant. . . .
unix || die


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: need to look up short names

Todd Chester
In reply to this post by Bind-Users forum mailing list
On 08/10/2017 07:07 PM, Grant Taylor via bind-users wrote:

> On 08/10/2017 06:21 PM, toddandmargo wrote:
>> Fedora 26
>
> Fedora = Linux (vs Windows vs other)
>
>> I am stumped.   I need to be able to look up short names on my local
>> network.
> ...
>> What am I missing?
>
> domain and / or search configuration in /etc/resolv.conf
>
> man resolv.conf



Follow up:

I had goofed my /etc/resolv.conf.  The hostname was
suppose to be ".local" not ".com".

mumble, mumble

-T


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: need to look up short names

Todd Chester
On 08/11/2017 02:40 PM, ToddAndMargo wrote:

> On 08/10/2017 07:07 PM, Grant Taylor via bind-users wrote:
>> On 08/10/2017 06:21 PM, toddandmargo wrote:
>>> Fedora 26
>>
>> Fedora = Linux (vs Windows vs other)
>>
>>> I am stumped.   I need to be able to look up short names on my local
>>> network.
>> ...
>>> What am I missing?
>>
>> domain and / or search configuration in /etc/resolv.conf
>>
>> man resolv.conf
>
>
>
> Follow up:
>
> I had goofed my /etc/resolv.conf.  The hostname was
> suppose to be ".local" not ".com".
>
> mumble, mumble
>
> -T

Setting the host and domain name has gotten a little
"interesting" in Fedora as of late.

# hostnamectl set-hostname FedoraServer.xxxx.local –static

And it updates resolv.conf too

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Loading...