Re: Setting hostname - fake and real

2005-03-10 Thread Ben Paley
On Thursday 10 March 2005 10:03, Chris Hodgins wrote:

> You can simply use 127.0.0.1 in there.
>
> 127.0.0.1 localhost my-xp-machine.org

I'll give that a go next!

Cheers,
Ben
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Setting hostname - fake and real

2005-03-10 Thread Chris Hodgins
Ben Paley wrote:
-Original Message-

From: Mark <[EMAIL PROTECTED]>
Subject: RE: Setting hostname - fake and real
To: "'FreeBSD-Questions Questions'" 
 

On Wednesday 09 March 2005 08:20, Luke Kearney wrote:

Hello Ben
Sounds like you might need some DNS magic here. I am not 
entirely sure I
understand why you would want to use fake dns names.
I don't especially want to use a fake name, I just don't have 
a real one to use... the machine I'm talking about is my home
machine with dynamic IP
Why not simply add an entry to /etc/hosts? Like I do to get a
pretty name for logins from my XP machine:
192.168.0.6my-xp-machine.org
- Mark

Ok, what IP do I put? My dynamic IP in the real world (which is pretty static 
in practice), or something else? The address you've used in your example 
looks like my vmnet addresses.

Cheers,
Ben
You can simply use 127.0.0.1 in there.
127.0.0.1 localhost my-xp-machine.org
Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Setting hostname - fake and real

2005-03-10 Thread Ben Paley
> -Original Message-

>From: Mark <[EMAIL PROTECTED]>
>Subject: RE: Setting hostname - fake and real
>To: "'FreeBSD-Questions Questions'" 
 
>> On Wednesday 09 March 2005 08:20, Luke Kearney wrote:
>> 
>> > Hello Ben
>> > Sounds like you might need some DNS magic here. I am not 
>> entirely sure I
>> > understand why you would want to use fake dns names.
>> 
>> I don't especially want to use a fake name, I just don't have 
>> a real one to use... the machine I'm talking about is my home
>> machine with dynamic IP
>
>Why not simply add an entry to /etc/hosts? Like I do to get a
>pretty name for logins from my XP machine:
>
>192.168.0.6my-xp-machine.org
>
>- Mark

Ok, what IP do I put? My dynamic IP in the real world (which is pretty static 
in practice), or something else? The address you've used in your example 
looks like my vmnet addresses.

Cheers,
Ben
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Setting hostname - fake and real

2005-03-09 Thread Mark

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ben Paley
> Sent: woensdag 9 maart 2005 9:41
> To: Luke Kearney
> Cc: FreeBSD Questions
> Subject: Re: Setting hostname - fake and real
> 
> 
> On Wednesday 09 March 2005 08:20, Luke Kearney wrote:
> 
> > Hello Ben
> > Sounds like you might need some DNS magic here. I am not 
> entirely sure I
> > understand why you would want to use fake dns names.
> 
> I don't especially want to use a fake name, I just don't have 
> a real one to use... the machine I'm talking about is my home
> machine with dynamic IP

Why not simply add an entry to /etc/hosts? Like I do to get a
pretty name for logins from my XP machine:

192.168.0.6my-xp-machine.org

- Mark

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Setting hostname - fake and real

2005-03-09 Thread Ben Paley
On Wednesday 09 March 2005 08:20, Luke Kearney wrote:

> Hello Ben
> Sounds like you might need some DNS magic here. I am not entirely sure I
> understand why you would want to use fake dns names.

I don't especially want to use a fake name, I just don't have a real one to 
use... the machine I'm talking about is my home machine with dynamic IP - I 
know there are ways round this, but it hardly seems worth registering a 
domain for this machine when it's off more than half the time anyway!

> It won't really 
> work properly and if testing scripts that send mail is the goal then a
> FQDN is probably a good idea. Do you control the DNS for your 'real'
> domain?

It's hosted commercially. In practice I might be able to get the tech people 
there to do me a favour, but then again I've got this dynamic IP

> If so add your host potato and if possible get a reverse DNS 
> entry to match.
>
> For apache and X edit /etc/hosts and put the real information there and
> your problems should go away.

Thanks a lot, I'll give this a go. /etc/hosts, of course, what a fool 
I am! If it doesn't work then maybe I'll find myself going down the 
route of registering another domain!

Thanks again,
Ben
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Setting hostname - fake and real

2005-03-09 Thread Luke Kearney

On Wed, 9 Mar 2005 08:09:19 +
Ben Paley <[EMAIL PROTECTED]> spake thus:

> Hello,
> 
> Is there an easy way to set a fake hostname in rc.conf which will let 
> sendmail 
> send mail to external domains?
> 
> For ages I've had the line in rc.conf
> 
> hostname="potato.fake_domain.net"
> 
> (not exactly, but you see what I mean...) and I've had no problems with it at 
> all. Recently I've tried to set up sendmail, only so I can test php or perl 
> scripts that send emails!
> 
> Sending to localhost works fine, but mail to an external address is returned 
> by the remote domain because it couldn't verify my domain. Very sensible, I 
> could be a spammer. So I edited rc.conf to say
> 
> hostname="potato.real_domain.net"
> 
> that is, I used the name of a real domain which is registered to me. The 
> domain is hosted on the net, but AFAIK they don't have a machine called 
> "potato". Now apache won't start and I get weird errors in other things, like 
> shutting down X even!
> 
> Can anyone help?
> 
> Thanks very much,
> Ben


Hello Ben
Sounds like you might need some DNS magic here. I am not entirely sure I
understand why you would want to use fake dns names. It won't really
work properly and if testing scripts that send mail is the goal then a
FQDN is probably a good idea. Do you control the DNS for your 'real'
domain? If so add your host potato and if possible get a reverse DNS
entry to match.

For apache and X edit /etc/hosts and put the real information there and
your problems should go away.

HTH

LukeK
-- 
 <>

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"