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

Helge Blischke H.Blischke at srz-berlin.de
Fri Jul 2 05:35:30 PDT 2004


Matthias Czapla wrote:
> 
> On Thu, Jul 01, 2004 at 02:38:22PM +0200, Helge Blischke wrote:
> > 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.
> 
> I don't have anything NIS-related installed. Here is a typescript
> showing everything (hopefully) that could be important regarding
> my DNS configuration:
> 
> Script started on Thu Jul  1 19:42:42 2004
> <lal at ddm ~>cd /etc
> <lal at ddm /etc>cat nsswitch.conf
> # /etc/nsswitch.conf
> #
> # Example configuration of GNU Name Service Switch functionality.
> # If you have the `glibc-doc' and `info' packages installed, try:
> # `info libc "Name Service Switch"' for information about this file.
> 
> passwd:         compat
> group:          compat
> shadow:         compat
> 
> hosts:          files dns
> networks:       files
> 
> protocols:      db files
> services:       db files
> ethers:         db files
> rpc:            db files
> 
> netgroup:       nis
> <lal at ddm /etc>cat resolv.conf
> search fick.xxx
> nameserver 127.0.0.1
> <lal at ddm /etc>cd bind/
> <lal at ddm /etc/bind>ls
> db.0    db.192.168.128  db.fick.xxx  db.root     rndc.key
> db.127  db.255          db.local     named.conf
> <lal at ddm /etc/bind>cat db.fick.xxx
> $TTL 3D
> @       IN      SOA     ddm.fick.xxx. hostmaster.fick.xxx. (
>                         199802151       ; serial
>                         8H              ; refresh, seconds
>                         2H              ; retry, seconds
>                         4W              ; expire, seconds
>                         1D )            ; minimum TTL
> ;
> @       IN      NS      ddm             ; Inet address of name server
> @       IN      MX      10 ddm.fick.xxx.        ; mail exchanger
> ;
> localhost       A       127.0.0.1
> ddm             A       192.168.128.1
> stube           A       192.168.128.3
> runkel          A       192.168.128.4
> plonk           A       192.168.128.5
> <lal at ddm /etc/bind>cat db.192.168.128
> $TTL 3D
> @       IN      SOA     ddm.fick.xxx. hostmaster.fick.xxx. (
>                         199802151       ; serial
>                         8H              ; refresh
>                         2H              ; retry
>                         4W              ; expire
>                         1D )            ; minimum TTL
>                 NS      ddm.fick.xxx.
> ;
> 1               PTR     ddm.fick.xxx.
> 3               PTR     stube.fick.xxx.
> 4               PTR     runkel.fick.xxx.
> 5               PTR     plonk.fick.xxx.
> <lal at ddm /etc/bind>tail -n 13 named.conf
> // add entries for other zones below here
> 
> zone "fick.xxx" {
>         type master;
>         notify no;
>         file "/etc/bind/db.fick.xxx";
> };
> 
> zone "128.168.192.in-addr.arpa" {
>         type master;
>         notify no;
>         file "/etc/bind/db.192.168.128";
> };
> <lal at ddm /etc/bind>
> Script done on Thu Jul  1 19:44:57 2004
> 
Looks OK as far as I can see. No further clues. Sorry.

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