vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| When I first ran through the installation process, I didn't really know what to set as my domain name, since I really just have a hodgepodge of computers and a little dinky "cable modem router" (basically a switch with a DHCP server Gentoo on as a DNS server at some point... but I digress. The point is, I skipped the step (part of #19) in the install doc (http://www.gentoo.org/doc/en/gentoo-x86-install.xml) that told me to set my domainname by issuing the command: || # echo mydomain.com > /etc/dnsdomainname So, now that I'm trying to get my Gentoo box to be my webserver, mailserver, etc., I figured it might actually be of some benefit to have a domain name set (mainly because it says so in the local email setup doc at http://dev.gentoo.org/~spider/local-...al-email.html). So I issues the command: || ayla / $ echo home > /etc/dnsdomainname and then I rebooted. But apparently my domainname didn't stick: || ayla / $ cat /etc/dnsdomainname || home || ayla / $ domainname || (none) Am I doing something wrong? Do I even really need to set a domain name? -- Lenroc |
| |||
| Lenroc wrote: > Am I doing something wrong? Do I even really need to set a domain name? Try 'rc-update add domainname default', then 'rc' as root user. -- PeKaJe Using TSO is like kicking a dead whale down the beach. -- S.C. Johnson |
| |||
| On Thu, 15 Jan 2004 10:38:02 +0000, Peter Jensen wrote: > Try 'rc-update add domainname default', then 'rc' as root user. Thanks for the reply. 'rc-update show' already listed domainname in the boot runlevel. Adding it to the default runlevel, issuing an 'rc' command (which I must admit I don't know what it does...), and even rebooting left me with the same problem (issuing the command 'domainname' prints '(none)'). I also tried removing 'domainname' from my boot runlevel, issuing 'rc', and rebooting again. Same problem. I'm sure it's just a fundamental misunderstanding on my part... I really have no idea what I'm doing here! -- Lenroc |
| |||
| On Thu, 15 Jan 2004 11:36:51 -0700, Lenroc wrote: > On Thu, 15 Jan 2004 10:38:02 +0000, Peter Jensen wrote: > >> Try 'rc-update add domainname default', then 'rc' as root user. > > Thanks for the reply. > > 'rc-update show' already listed domainname in the boot runlevel. Adding it > to the default runlevel, issuing an 'rc' command (which I must admit I > don't know what it does...), and even rebooting left me with the same > problem (issuing the command 'domainname' prints '(none)'). > > I also tried removing 'domainname' from my boot runlevel, issuing 'rc', > and rebooting again. Same problem. > > I'm sure it's just a fundamental misunderstanding on my part... I really > have no idea what I'm doing here! Hi, Ran into the self same problem, and read somewhere that it could be fixed by manually editing /etc/hosts. FWIW, here's mine: # /etc/hosts: This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. Just add the names, addresses # and any aliases to this file... # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.7 2002/11/18 19:39:22 azarah Exp $ # #127.0.0.1 lundy localhost #192.168.10.106 lundy.cathcart localhost 127.0.0.1 lundy.cathcart lundy localhost The first 2 lines exhibited the problem you are having, but the third line fixed it. Not sure why though..... HTH -- jondotrogersatntlworlddotcom |
| |||
| On Thu, 15 Jan 2004 22:21:46 +0000, Jon wrote: > Ran into the self same problem, and read somewhere that it could be fixed > by manually editing /etc/hosts [and adding 'hostname'.'domainname' as an > alias for 127.0.0.1]. After doing this, I noticed that when I boot up the computer, I'm greated with "This is ayla.home"... However, issuing the command 'domainname' from the shell still prints out "(none)"... I don't know how long ago it started referring to itself as 'ayla.home' (it's correct hostname & domainname), because I have not logged in locally since I first got SSH running... -- Lenroc |
| |||
| On Thu, 15 Jan 2004 02:29:07 -0700, Lenroc wrote: > > and then I rebooted. But apparently my domainname didn't stick: > > || ayla / $ cat /etc/dnsdomainname > || home > || ayla / $ domainname > || (none) > > Am I doing something wrong? Do I even really need to set a domain name? I'm not sure, but I _did_ complete the steps to set a domainname on my pc and domainname also gives met this: || theblackdragon@bdp theBlackDragon $ domainname || (none) But looking at "man domainname" makes me think you just got the wrong command, these are the "domainname" commands: hostname - show or set the system's host name domainname - show or set the system's NIS/YP domain name dnsdomainname - show the system's DNS domain name nisdomainname - show or set system's NIS/YP domain name ypdomainname - show or set the system's NIS/YP domain name nodename - show or set the system's DECnet node name seeing as you are trying to set the DNSdomainname I'd think you need dnsdomainname to get at your domainname, like this: || theblackdragon@bdp theBlackDragon $ dnsdomainname || ca.tc HTH theBlackDragon |
| ||||
| On Sat, 17 Jan 2004 22:26:49 +0100, theBlackDragon wrote: > But looking at "man domainname" makes me think you just got the wrong > command, these are the "domainname" commands: > > hostname - show or set the system's host name > domainname - show or set the system's NIS/YP domain name > dnsdomainname - show the system's DNS domain name [...] > seeing as you are trying to set the DNSdomainname I'd think you need > dnsdomainname to get at your domainname, like this: That's probably it right there. My man pages don't show any of that ('man domainname' shows me info on 'hostname', and nothing as specific as what you show...). I must admit I don't know what a NIS/YP domain name is. But since my Gentoo box is performing well on the network, I guess if I need to know at some point I can look it up Thanks -- Lenroc |