LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 01-28-2010, 10:50 PM   #1
alphaniner
LQ Newbie
 
Registered: Jan 2009
Posts: 17

Rep: Reputation: 1
NFS server with dynamic IP addresses


I'm trying to set up an NFS server on a FreeBSD 7.1 machine to serve a few linux clients. The shares are intended to be mounted at boot through /etc/fstab. Actually I've got everything working by assigning the server a static IP and exporting to "-address x.y.z.0 -netmask 255.255.255.0" (or something like that, i don't recall the exact syntax). But I'd like to get it working with all dynamic IPs (DHCP on a Linksys router).

Basically, I reckon I need hostname resolution on both the server and client sides. Is this possible without changing the network architecture? If so, I'd just like some pointers in the right direction. I found this thread about netbios name resolution on Linux, but I'm not able to test it ATM. Regardless, I'm interested in alternatives as I'd prefer to not install samba. Thanks.

Last edited by alphaniner; 01-28-2010 at 10:51 PM.
 
Old 01-29-2010, 01:22 AM   #2
jvishnefske
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
there are a couple of ways

It should be possible to do this with avahi using multicast dns, however What I currently do is simply run dnsmasq on my wtr54gl, and edit the config file to enable dns resolution, and adding the host names, and mac addresses for my main computers that way all computers use dhcp, but the servers are guaranteed to receive the specified ip address, also dns automatically resolves local hosts, ie
ping foo
correctly resolves the local foo hostname as you would expect.
 
Old 04-30-2010, 02:47 AM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,273

Rep: Reputation: 67
Hya,

With Debian/GNU Linux, I think it is as easy as installing avahi-utils.

Happy Penguins!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Home network, hostnames, IP addresses, dynamic dchp MajorDill Linux - Newbie 1 10-15-2009 07:03 PM
Dynamic DNS and public IP addresses bubblenet Linux - Networking 2 10-21-2008 04:57 AM
IP addresses subnetting and nfs arubin Linux - Networking 2 06-22-2008 09:05 AM
DHCP with static and dynamic addresses marozsas Linux - Networking 13 09-19-2007 05:11 PM
mixing static and dynamic ip addresses bobwall Linux - Networking 5 07-21-2004 08:47 PM


All times are GMT -5. The time now is 06:07 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration