--- David Eastcott <[EMAIL PROTECTED]> wrote:
> On Monday 11 March 2002 05:54 am, you wrote:
> > [EMAIL PROTECTED] (SI Reasoning) writes:
> > > 04:25 0:00 /sbin/dhcpcd -Y -N eth0
> > > root 4912 0.0 0.1 1752 596 pts/1 S
> > > 06:16 0:00 grep dhcpcd
> >
> > Ok, your dhcpcd was used only with the -Y and -N
> arguments:
> >
> > according to the man page you should the -H option
> for your needs.
> >
> > Also, according to the /sbin/ifup file, the
> following section:
> >
> > case $(basename $DHCP_CLIENT) in
> > dhcpcd)
> > [ -n "$DHCP_HOSTNAME" ] && DHCP_ARGS="-h
> $DHCP_HOSTNAME"
> > [ -n "$NEEDHOSTNAME" ] &&
> DHCP_ARGS="$DHCP_ARGS -H"
> >
> > the last line requires the NEEDHOSTNAME variable
> in your
> > /etc/sysconfig/network-scripts/ifcfg-eth0.
> >
> > So, add a line like this in your
> /etc/sysconfig/network-scripts/ifcfg-eth0
> > file:
> > NEEDHOSTNAME=whatever
> >
> > ifdown eth0 and ifup eth0.
> >
> > This should use the -H option for your dhcpcd.
> >
> > Other ideas... you coulod use other dhcp client
> (dhcp-client, pump, dhcpxd)
> >
> > cheers,
>
> The -H option is meat for dhcp servers which supply
> a host name for the
> computer to use, the -h option is meant for
> computers that tell the dhcp
> server what name they use.
>
> Since it sounds as though SI is using a mixed
> environment and the supplied
> dhcp.conf file has no host declartions and it is
> attempting to update the DNS
> server, my guess is that the -h is the desired
> option. In which case, just
> set the DHCP_HOSTNAME variable in
> /etc/sysconfig/network to the same as the
> HOSTNAME variable. (I am assuming the HOSTNAME is
> actually set to the name
> desired for the computer).
>
> I am using a very similar set up here and it works
> like a charm.
>
> Dave
>
interesting thing is, pump works correctly out of the
box (although I can find no file like
/etc/dhcpc/dhcpcd-eth0.info. Dhcpcd, however did not
work correctly linux to linux. It would accept the ip
address but not post its client hostname to the dhcpd
server.
However I am having a rough time getting dynamicdns to
work correctly between my dhcp and dns both running on
the same updated cooker box. I still get no ping on
either windows or linux clients that I try to connect
to by hostname. I do have full internet connectivity (
and proper internet dns) and can ping ip addresses
fine.
/etc/named.conf
options {
// DNS tables are located in the
/var/named directory
directory "/var/named";
pid-file "/var/run/named/named.pid";
// Forward any unresolved requests to our
ISP's name server
forwarders {
207.203.32.20;
205.152.16.8;
};
/*
* If there is a firewall between you and
nameservers you want
* to talk to, you might need to
uncomment the query-source
* directive below. Previous versions of
BIND always asked
* questions using port 53, but BIND 8.1
uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
zone "." {
type hint;
file "root.hints";
};
// All our DNS information is stored in
/var/named/domain.name.db
zone "home.network" {
type master;
file "home.network.db";
allow-update {
127.0.0.1;
192.168.1.1;
};
// some security
allow-transfer {
127.0.0.1;
};
};
zone "0.0.127.in-addr.arpa" {
notify no;
type master;
file "127.0.0.rev";
allow-update {
127.0.0.1;
192.168.1.1;
};
allow-transfer {
127.0.0.1;
};
};
zone "1.168.192.in-addr.arpa" {
notify no;
type master;
file "192.168.1.rev";
allow-update {
127.0.0.1;
192.168.1.1;
};
allow-transfer {
127.0.0.1;
};
};
/etc/dhcpd.conf
ddns-updates on;
ddns-domainname "home.network";
use-host-decl-names on;
option domain-name-servers 192.168.1.1;
option ntp-servers 192.168.1.1;
option x-display-manager 192.168.1.1;
option font-servers 192.168.1.1;
option time-servers 192.168.1.1;
option domain-name "home.network";
# default file for dhcpd
# replace 192.168.1.1 by the IP adress of the server
(same server for
# all services in this config file)
server-identifier sidereal.home.network;
default-lease-time 36000;
max-lease-time 144000;
ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0 {
ddns-updates on;
ddns-domainname "home.network";
option ntp-servers 192.168.1.1;
option x-display-manager 192.168.1.1;
option font-servers 192.168.1.1;
range 192.168.1.65 192.168.1.254;
option domain-name "home.network";
option domain-name-servers 192.168.1.1 ,
207.203.32.20 , 205.152.16.8;
option lpr-servers 192.168.1.1;
option netbios-name-servers 192.168.1.1;
option routers 192.168.1.12;
option subnet-mask 255.255.255.0;
option time-servers 192.168.1.1;
ddns-rev-domainname "in-addr.arpa";
ddns-update-style ad-hoc;
}
/etc/rndc.conf
options {
default-server localhost;
default-key "key";
};
server localhost {
key "key";
};
key "key" {
algorithm hmac-md5;
secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
/etc/rndc.keys is empty
=====
SI Reasoning
[EMAIL PROTECTED]
A requirement of creativity is that it contributes to change. Creativity keeps
the creator alive.
-FRANK HERBERT, unpublished notes
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/