LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 12-17-2003, 03:01 PM   #1
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Rep: Reputation: 31
Question domainname problem, MAC question


I have two network-related questions about my FreeBSD 5.1-CURRENT system:

1) When I do an "ifconfig -a" or "arp -a" to determine my NIC card's MAC address, a 'spoofed' MAC shows up (or at least it looks spoofed to me):
ether 0a:00:0a:00:0a:00
Is there another way to discover the "true" MAC address, or to correct this one? As far as I know, I've not done anything purposely to alter the address.

2) On boot, the system reports an error from /etc/rc in determining my local domain name, even though I've set it both in /etc/hosts and /etc/rc.conf (domainname="mydomain.com") and /etc/resolv.conf (domain mydomain.com). Is this correct? If so, why is it that when I type "domainname" the system returns no result, until I manually run "domainname <mydomain>"? How do I set the value and keep the system from complaining?
 
Old 12-17-2003, 05:31 PM   #2
RJW
Member
 
Registered: Nov 2003
Posts: 146

Rep: Reputation: Disabled
Regarding your MAC address: if that's what the system says it is, then that is what it is.

Your problem is in your `/etc/rc.conf' file. It's not `domainname', but `hostname':
Code:
hostname="mydomain.com"
 
Old 12-17-2003, 05:52 PM   #3
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by RJW
Regarding your MAC address: if that's what the system says it is, then that is what it is.
You'd think, but I find it highly difficult to believe the MAC address "0a:00:0a:00:0a:00" would be unique, which is a requirement for a valid MAC address.
In addition, "arp"s from this box and other boxes with other OSes return the same MAC.
Quote:
Originally posted by RJW
Your problem is in your `/etc/rc.conf' file. It's not `domainname', but `hostname':
Code:
hostname="mydomain.com"
Yes; in addition to having set domainname, I've also got hostname set in /etc/rc.conf as well:
hostname="host.mydomain.com"
Any other ideas?
 
Old 12-18-2003, 06:11 AM   #4
RJW
Member
 
Registered: Nov 2003
Posts: 146

Rep: Reputation: Disabled
What is the error message?
 
Old 12-18-2003, 09:51 AM   #5
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
Even though it appears on the screen during each boot, it's not being stored in 'dmesg'... where would I look to find it?
Regardless, I believe the error is "domainname not set", on two successive lines, if I'm not mistaken.
 
Old 12-18-2003, 01:20 PM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
By the way, that MAC address looks like it might be a multicast MAC addr. I'll look it up later today if I get a chance, but you might want to look into that.
 
Old 12-18-2003, 02:26 PM   #7
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
I don't know for sure, but it doesn't seem to be according to the list posted here:
http://www.cavebear.com/CaveBear/Eth...multicast.html
 
Old 12-18-2003, 07:27 PM   #8
RJW
Member
 
Registered: Nov 2003
Posts: 146

Rep: Reputation: Disabled
The error message will be in `/var/log/messages'.

Have you tried commenting out the `domainname' entry in your `/etc/rc.conf' file?
 
Old 12-18-2003, 07:44 PM   #9
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
Thanks...here's the error:
Dec 17 12:20:29 <host> root: /etc/rc: WARNING: domainname(1) is not set.
Dec 17 12:20:29 <host> root: /etc/rc: WARNING: domainname(1) is not set.

I haven't tried commenting-out the domainname entry. I'l give it a try.
Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
domainname? kalleanka General 2 06-12-2005 05:53 PM
domainname pkp2372 Linux - Newbie 1 02-24-2004 11:40 AM
Problem with domainname rot Linux - Networking 4 08-11-2003 05:19 AM
domainname kevv Linux - Networking 1 05-03-2002 11:19 AM
domainname problem jayakrishnan Linux - General 1 03-21-2002 01:51 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration