Networking Forums

Networking Forums > Computer Networking > Linux Networking > Stupid network hostname problem

Reply
Thread Tools Display Modes

Stupid network hostname problem

 
 
Jarson
Guest
Posts: n/a

 
      04-29-2005, 02:16 PM
I've created this really annoying network problem by having an incorrect
hostname, domainname or something. I don't know what I did wrong to create
the problem. Anytime I use try to access an invalid domain name, my system
appends it to my own domain name.

Example:
> ping www.cupsnotbook.com becomes www.cupsnotbook.myprivatedomain.com


This is mildly annoying, however, if my host's DNS server is inaccessible
and I am trying to send an email to a valid domain, then it too gets messed
up.
i.e. (E-Mail Removed) becomes (E-Mail Removed)

I am trying to have a hostname of "fedora" on my domain of
"myprivatedomain.com" (not my real domain)
I am not sure where my problem is, or how to fix it. Here is the output of
some commands -- can someone tell me what looks wrong?
> hostname fedora
> domainname (none)
> dnsdomainname myprivatedomain.com
> cat /etc/sysconfig/network

NETWORK=yes
HOSTNAME=fedora.myprivatedomain.com

Thanks, Jarson (jarson from sygration - that's a dot com company if want to
mail me)






 
Reply With Quote
 
 
 
 
Alexander Harsch
Guest
Posts: n/a

 
      04-29-2005, 04:12 PM
Jarson wrote:

> I've created this really annoying network problem by having an incorrect
> hostname, domainname or something. I don't know what I did wrong to
> create
> the problem. Anytime I use try to access an invalid domain name, my
> system appends it to my own domain name.
>
> Example:
> > ping www.cupsnotbook.com becomes www.cupsnotbook.myprivatedomain.com

>
> This is mildly annoying, however, if my host's DNS server is inaccessible
> and I am trying to send an email to a valid domain, then it too gets
> messed up.
> i.e. (E-Mail Removed) becomes (E-Mail Removed)
>
> I am trying to have a hostname of "fedora" on my domain of
> "myprivatedomain.com" (not my real domain)
> I am not sure where my problem is, or how to fix it. Here is the output
> of some commands -- can someone tell me what looks wrong?
>> hostname fedora
>> domainname (none)
>> dnsdomainname myprivatedomain.com
>> cat /etc/sysconfig/network

> NETWORK=yes
> HOSTNAME=fedora.myprivatedomain.com
>
> Thanks, Jarson (jarson from sygration - that's a dot com company if want
> to mail me)

Hi,

you might want to delete/comment the domainname in /etc/resolf.conf

Alex
 
Reply With Quote
 
Jarson
Guest
Posts: n/a

 
      04-29-2005, 09:47 PM
resolv.conf did have my domain name in it

>search myprivatedomain.com
>nameserver 206.47.244.109
>nameserver 206.47.244.137


However, that directive means it will append my domain to any node that does
not have a domain. I tried removing it any, but I still have the same
problem.

Jarson

"Alexander Harsch" <(E-Mail Removed)> wrote in message
news:d4tmdt$26l3$(E-Mail Removed)...
> Jarson wrote:
>
>> I've created this really annoying network problem by having an incorrect
>> hostname, domainname or something. I don't know what I did wrong to
>> create
>> the problem. Anytime I use try to access an invalid domain name, my
>> system appends it to my own domain name.
>>
>> Example:
>> > ping www.cupsnotbook.com becomes www.cupsnotbook.myprivatedomain.com

>>
>> This is mildly annoying, however, if my host's DNS server is inaccessible
>> and I am trying to send an email to a valid domain, then it too gets
>> messed up.
>> i.e. (E-Mail Removed) becomes (E-Mail Removed)
>>
>> I am trying to have a hostname of "fedora" on my domain of
>> "myprivatedomain.com" (not my real domain)
>> I am not sure where my problem is, or how to fix it. Here is the output
>> of some commands -- can someone tell me what looks wrong?
>>> hostname fedora
>>> domainname (none)
>>> dnsdomainname myprivatedomain.com
>>> cat /etc/sysconfig/network

>> NETWORK=yes
>> HOSTNAME=fedora.myprivatedomain.com
>>
>> Thanks, Jarson (jarson from sygration - that's a dot com company if want
>> to mail me)

> Hi,
>
> you might want to delete/comment the domainname in /etc/resolf.conf
>
> Alex



 
Reply With Quote
 
Jeroen Geilman
Guest
Posts: n/a

 
      05-08-2005, 10:53 AM
Jarson wrote:
> resolv.conf did have my domain name in it
>
> >search myprivatedomain.com
> >nameserver 206.47.244.109
> >nameserver 206.47.244.137

>
> However, that directive means it will append my domain to any node that does
> not have a domain. I tried removing it any, but I still have the same
> problem.


You need to replace that with its opposite:
domain myprivatedomain.com

That lets the resolver know that it should *not* append domains to any
host that appears to be outside the domain (i.e. have less than a FQDN)

Think it through ;-)

>>>I am trying to have a hostname of "fedora" on my domain of
>>>"myprivatedomain.com" (not my real domain)
>>>I am not sure where my problem is, or how to fix it. Here is the output
>>>of some commands -- can someone tell me what looks wrong?
>>>
>>>>hostname fedora
>>>>domainname (none)
>>>>dnsdomainname myprivatedomain.com
>>>>cat /etc/sysconfig/network
>>>
>>> NETWORK=yes
>>> HOSTNAME=fedora.myprivatedomain.com


The hostname is wrong here - either FC is messing up or you did.


--
J

www.gentoo.org - not just for geeks anymore.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PLEASE HELP - Problem accessing machines by Hostname Rob Wireless Internet 6 02-26-2004 11:31 PM
Need help setting up new network (stupid question??) Mark Broadband Hardware 1 01-23-2004 11:55 PM
linux windows hostname problem Dhruv Linux Networking 4 10-08-2003 07:12 AM
linux windows hostname problem Dhruv Linux Networking 3 10-07-2003 09:01 PM
linux windows hostname problem Dhruv Linux Networking 1 10-07-2003 04:14 PM



1 2 3 4 5 6 7 8 9 10 11