[cups.general] short host name versus FQDN in Allow directives

Helge Blischke H.Blischke at srz-berlin.de
Thu Jul 1 05:38:22 PDT 2004


Matthias Czapla wrote:
> 
> On Wed, Jun 30, 2004 at 09:03:37AM -0400, Michael Sweet wrote:
> > >So I tried to put the short host name "ddm" in the Allow directive
> > >and then it works. Why doesn't the FQDN work too? I have a local DNS
> > >server running and so far it has worked without troubles, i.e. I can
> > >lookup host names and IPs forward and reverse:
> > >
> > ><root at ddm /etc/cups>host ddm
> > >ddm.fick.xxx has address 192.168.128.1
> > ><root at ddm /etc/cups>host ddm.fick.xxx
> > >ddm.fick.xxx has address 192.168.128.1
> > ><root at ddm /etc/cups>host 192.168.128.1
> > >1.128.168.192.in-addr.arpa domain name pointer ddm.fick.xxx.
> > >
> > >Of course this is all not a super big problem because I could just
> > >use the short names, but shouldn't the FQDN work exactly the same?
> >
> > It should - check the /etc/hosts file on your server and make sure
> > that the short hostname isn't listed there...
> 
> It isn't. Here is my /etc/hosts:
> 
> 127.0.0.1       localhost
> 
> # The following lines are desirable for IPv6 capable hosts
> # (added automatically by netbase upgrade)
> 
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
> 
> Regards
> Matthias

It might depend on your settings in /etc/nsswitch.conf (if your system
makes
use of this) and/or the DNS configuration. Problems may arise if you use
both
DNS and NIS (not NIS+) as both have a different view on how domains are
organized.

Helge
 
-- 
H.Blischke at srz-berlin.de
H.Blischke at srz-berlin.com
H.Blischke at acm.org




More information about the cups mailing list