howto set domain name in Karmic

Asked by bill purvis

I need to set my domainname in Karmic, but can't figure out how. In earlier releases I did it via
System->Administration->Network
but that seems to have gone, leaving 'Network Tools' which are useful but don't allow me to
set anything, and System->Preferences->Network Connections seems to replace some of
it, but doesn't let me set the dns domain name. I'd be happy to do it via a terminal if I knew
which command to use or file to edit. I have put 'domain billp.org' into /etc/resolv.conf and
rebooted, but that hasn't done anything. 'hostname -d' still shows blank.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Solved by:
bill purvis
Solved:
Last query:
Last reply:
Revision history for this message
Ryan Dwyer (ryandwyer) said :
#1

For the domain name used in DNS, go to System > Preferences > Network Connections > Highlight connection and click Edit > IPv4 Settings tab > Enter value in "Search domains" textbox. That will append that domain to relative DNS lookups. So looking up wks001 with search domain "local" will do a DNS request for wks001.local.

For file sharing, it's set in /etc/samba/smb.conf under the workgroup option.

Revision history for this message
bill purvis (bill-billp) said :
#2

Sorry, but I've already done that.
My problem arose when setting up Apache, it complains that it is unable to determine
the domain name, and when I checked 'hostname -d' that comes back with a blank.
I've had this trouble earlier, but can't recall what the fix was. I'm sure that I could edit
it into the apache config file, but I'd prefer to do it properly.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
bill purvis (bill-billp) said :
#4

Nope! Thanks for the suggestion but that's way beyond anything I want to get into.
I don't want to set up a domain server or anything like that, I simply want to get 'hostname -d' to
return a sensible name, like 'billp.org' as it did in previous releases.....

Revision history for this message
bill purvis (bill-billp) said :
#5

OK, I've figured it out myself....
When setting up /etc/hosts I'd put:

....
192.168.0.8 bela bela.billp.org
....

which I've now changed to

...
192.168.0.8 bela.billp.org bela
....

and it now works as it should!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

cool beans :)