Host name changing on its own

mac

    Next

  • 1. Mac newsreaders...
    Is the Mac built-in Mail application also an NNTP newsreader? If not, can someone please recommend a good Mac application for both email and news (like Outlook Express on the Windows side).
  • 2. Deleting Locked JPG from desktop?
    I have a JPG that is corrupt and locked on my desktop. I am unable to open the file or unlock it. nor can I trash it. Any suggestions as to how to get rid of it? Thanks, Jay
  • 3. strange misbehaviour in Firefox
    Morning. I use Firefox 2.0.0.11 on MacOS X 10.5.1. Before I've installed MacOS X 10.5 I've made a backup of my entire internal startup volume to an external HDD. Then I've installed MacOS X 10.5. After that I've immigrated by using the Migration-Assistant of MacOS X the former user aa into the new installed MacOS X 10.5 as a new user bb. And all works fine but one thing doesn't: Firefox tries to download files into /User/aa/Desktop but not into / Users/bb/Downloads as defined in Prefs. /User/aa/Desktop was the given destination in the former user aa installation but isn't the right destination now. Firefox ignores every changes given now in the prefs panel. I've deleted now to find the harasser: ~/Library/Application Support/Firefox/ ~/Library/Preferences/org.mozilla.firefox.plist /Applications/Firefox.app And reinstalled Firefox again from scratch. But the misbehaviour persists: Firefox tries to download to /Users/aa/Desktop. What can I do to urge Firefox to accept my settings? TIA and kind regards, Friedrich -- Kinderlm ist Zukunftsmusik. vatolin (at) mac (dot) com

Host name changing on its own

Postby Marco De Vitis » Fri, 07 Apr 2006 06:26:27 GMT

Hi,
I've got an iBook G4 running on OS 10.4.5, and since a few days I'm 
experiencing a strange problem: something on my machine seems to be 
changing the machine name on its own.

I've correctly set up my chosen hostname in Sharing preferences, and it 
is correctly applied upon system boot. But when I put the iBook to sleep 
and then wake it up again the hostname is changed to 
"dslcore.surfplus.de", which I absolutely have no idea where it comes 
from. I noticed this thanks to my custom Terminal prompt, which shows 
the current hostname (and entering "hostname" returns 
"dslcore.surfplus.de"); I couldn't find this name elsewhere in my system.

I connect to my router through AirPort, using a static IP address, no 
DHCP server is present in my LAN.

I'm pretty sure I didn't do anything strange recently to cause this.
Do you have any idea about what might have happened, or how to find out 
what is causing this?
System logs did not help, I can only find the following line each time I 
wake up my iBook:

configd[36]: setting hostname to "dslcore.surfplus.de"

Thanks.

-- 
Ciao,
   Marco.

Re: Host name changing on its own

Postby Stephen C. » Sat, 08 Apr 2006 01:14:35 GMT

On Wed, 5 Apr 2006 14:26:27 -0700, Marco De Vitis wrote
(in message <7CWYf.69002$ XXXX@XXXXX.COM >):


Just a guess, but do you use a German DSL connection? If so, I'd say that 
somehow the dsl modem is setting the hostname. Disconnecting the dsl modem 
from the LAN would tell you if the modem was the culprit.

StephenC


Re: Host name changing on its own

Postby Marco De Vitis » Sat, 08 Apr 2006 05:53:59 GMT

Stephen C. ha scritto:


No, I have an Italian ADSL connection. I connect through a wi-fi router 
(Zyxel 660HW).
The connection must be related to my problem somehow, because indeed if 
I disable the AirPort card and then set the iBook to sleep and wake it 
up again, the hostname does NOT change.
Instead, it is changed even if I simply disable AirPort and enable it 
again. So it seems the change happens whenever the connection to the 
router goes up.

Unfortunately, I can't find anything at all in the router configuration 
which might be related to this problem. DHCP is disabled, the only 
active LAN<->WAN rules in the firewall are the ones I did set myself, 
any "do-it-automatically" stuff is disabled... I really don't know where 
else can I look.
What's more, even supposing that my iBook is being assigned this name 
from the outside (router or WAN), there *should* be a way to disable 
this behaviour in MacOS itself.

-- 
Ciao,
   Marco.

Re: Host name changing on its own

Postby Stephen C. » Sun, 09 Apr 2006 02:28:30 GMT

On Thu, 6 Apr 2006 13:53:59 -0700, Marco De Vitis wrote
(in message <HdfZf.71249$ XXXX@XXXXX.COM >):


Unfortunately you are getting above my abilities. I do not know exactly why 
your iBook would pull a host name from the dsl modem, or how to keep it from 
doing so. Good luck, though!

StephenC.


Re: Host name changing on its own

Postby Simon Slavin » Sun, 09 Apr 2006 06:09:47 GMT


<7CWYf.69002$ XXXX@XXXXX.COM >:
 

The Mac is using a particular numeric IP address.  When it starts to use
that address it looks it up and find the name assigned to that address. 
It then adopts that name as its own.

To get rid of that address, use a different numeric IP address for your
Macintosh.

Simon.
-- 
 http://www.**--****.com/ 

Re: Host name changing on its own

Postby Marco De Vitis » Sun, 09 Apr 2006 07:48:32 GMT

Simon Slavin ha scritto:


Thanks, the trick works, although I can't see how on earth can the name 
"dslcore.surfplus.de" be assigned to the private IP 192.168.1.1 my 
machine had (now I'm using .4)... 8-/

-- 
Ciao,
   Marco.

Re: Host name changing on its own

Postby Marco De Vitis » Mon, 10 Apr 2006 18:05:44 GMT

Marco De Vitis ha scritto:


I found that the public DNS I was using as primary had a record pointing 
to dslcore.surfplus.de from IP 192.168.1.1. So that's why that hostname 
was being assigned to my iBook having that same IP.

I now changed my primary DNS, also because that one does not seem to be 
in use anymore (it was one of the two public servers on www.orsn.org, 
and surely was there recently, but it's not there anymore now), and I 
can finally go back to my 192.168.1.1 IP without being assigned any 
foreign name.

Thanks for the pointer.

-- 
Ciao,
   Marco.

Re: Host name changing on its own

Postby Simon Slavin » Wed, 12 Apr 2006 07:49:01 GMT


<4%BZf.72309$ XXXX@XXXXX.COM >:
 

This is just a guess.  The organisation 'surfplus' has their own private
name server which allows them to name their own computers.  They have
their own computer called 'dslcore' purely for their own use, inside their
own network.  Their name server has a configuration error and is leaking
this name, meant for internal use only, to other name servers outside
their system.

Simon.
-- 
 http://www.**--****.com/ 

Similar Threads:

1.Question: flushing host name cache to reflect changes in /etc/hosts

I'm in a situation where I regularly need to edit /etc/hosts files on
a variety of machines. My problem is that the changes don't seem to
take effect until after I restart a machine. I'd rather these changes
take place immediately.
I tried:
sudo /sbin/SystemStarter restart Resolver

to no avail.
If I run:
lookupdb -configuration

It indicates the cache is being consulted before flat files. How do I
flush the cache here?

Thanks!

RJB

2.Changed host name, but not completely :-(

Used the system preferences to change my server's name (and updated all
the DNS info).

The DNS stuff works fine, including reverse DNS.

However, when I get to the command line, the prompt still shows the old
host name (the "\h in the prompt string (valiable PS1 in bash).

Anyone know where the Unix portion of a mac gets its host name ? (which
is used for stuff like the \h).

(This is on an Xserve, so perhaps it behaves a bit differently from a
real mac)

The /etc/hosts file contains no reference to the node, only the
localhost (127.0.0.1 stuff).

3.can't resolve host name

Problem:
    I can't resolve LAN computer names from my imac

Context:
    * imac G5 running Tiger with all updates
    * imac is on a LAN with a linksys wrt54G router
    * win2k machine on same LAN
    * Linksys router performs dhcp services

    * my win2k machine uses a setting, "use NetBIOS setting from DHCP
server"
      to enable me to resolve host names (as I can demonstrate with
Ping hostname)

Question:
     What settings do i make on the imac running Tiger to achieve the
same goal (host name resolution)

Thank you !!!!

Bil

4.Can't resove IP address to host name

I use FSGetVolumeInfo(), and others, to get a list of mounted volumes.
Work fine, I have the following info for a volume mounted as
"afp://file01", volume "Temp":
 
VolName = Temp
ServerName = 192.168.1.11
ServerAdr = -102
ServerRoot = /Volumes/Temp
FullPath	= /Volumes/Temp/Data/t.txt

The problem is that I cannot find anywhere the mounted volume name
(file01), I get only the IP address. No problem, said I to myself, I
will just use AddressToName() to get the name....urk!... does'nt
work...it throw an exception and to nothing.

I try to use "host" and "dig" on the unix shell, but they wont give me
the hostname either (usenet posts talk about "forwarding",
"authoring", "delegation"...I'm lost).

So is this supposed to work, or is there another way to get the host
name from its IP address?

Here the code sample i use (in a thread):

	UInt32 	Adr;
	LStr255	name1("192.168.1.11");
	LStr255	name2("void");
	
	Adr = 0;
	
	LOpenTptInetMapper openTpt;

	try 
	{
		Adr = openTpt.NameToAddress(name1);  // has to be run in a thread
	} catch(...) 
	{
		Adr = 999;
	}
 // this seems to works Adr=3232235787
	try 
	{
		openTpt.AddressToName(Adr, name2);
	} catch(...) 
	{
		name2 = "\pNo Name";
	}
	
// dont work

Thanks

5.send a host name with DHCP request?

6. iMac OSX 10.1.5 cant resolve host names but can see IP addresses

7. Host Names and Safari

8. How do I change "My Name" default name in Print Header Info



Return to mac

 

Who is online

Users browsing this forum: No registered users and 82 guest