DNS and DHCP cooperation
Hi to all. Sorry for my bad english. A big (for me) problem with DNS and DHCP. For auto-educational purposes, I'm trying to configure a little network using VirtualBox. The situation is Ok for DNS, as I've correctly configured my only DNS server with 2 subnets, each with only 1 PC; all the clients can access the other client and my virtual server. Later, I've successfully installed DHCP, both client and server. But when I try to make the server programs (named and dhcpd) to cooperate, I get lost in the documentation (I'm using different sources), and the situation collapses. My client, which has a new DHCP assigned address, correctly pings the other virtual PC in the network, but when I ping this client from my virtual server, I see that it doesn't recognise the correct address (still present in the zone file); it always tries to ping 212.48.8.140, which seems not to exist in the real world (or at least it seems not to be eachable from the real PC) nor, clearly, in my virtual little network. Ok, I've made a mistake, normal. In fact, I haven't undestood how the DHCP server updates zone files in the DNS server both server programs are in the same virtual PC). So I came back to static address for my client; both clients still ping the other, but my DNS server still tries to ping this misterious (for me) address. I've deinstalled the BIND from ports, but nothing has changed. So, two questions: - Where can I find a document that explains how to use jointly the two servers (starting from a very basic point of view) how to use DNS and DHCP? When I read the documents I'v found on the Internet, they correctly start considering securities issues, but, for me, for now, that's not important; first I'd like to see them to work; - what is the reason of the strange beaviour of my virtual DNS server? I've solved starting with a new virtual PC, but I'd like to understand. Thank for your help. Marco ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
NFS - exports syntax
Hi to all. My problem concerns NFS configuration. I'm trying to simulate a little network using Sun VirtualBox in a Windows host and most of operations work fine, but I've some problems with /etc/exports syntax. This is my current exports file: -- /cond1 /cond2 -mapall=user1 pc01 pc02 /usr/home -alldirs pc01 pc02 --- When I type: #showmount -e I get /usr/home pc02 pc02 /cond1 pc01 pc02 /cond2 pc01 pc02 which is ok. But I wold like to use different "mapall" options for different filesystems; for example, something like this: /usr/home -alldirs pc02 pc02 /cond1 -mapall=user2 /cond2 -mapall=user1 pc01 pc02 which does not work: only /usr/home is exported. Or /usr/home pc02 pc02 /cond1 -mapall=user2 pc01 pc02 /cond2 -mapall=user1 pc01 pc02 Only /usr/home and /cond1 are exported. FreeBSD exports man page states: "Each line in the file (other than comment lines that begin with a #) specifies the mount point(s) and export flags within one local server file system for one or more hosts.". So, is it impossible to export different directories to different users using mapping? Thanks. Sorry for my bad english. Marco ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
NFS - exports syntax
First, thank you for your help. > > FreeBSD's exports implementation will only allow you to associate > mount options per local filesystem per remote machine, so this > version: > > > /usr/home pc02 pc02 > > /cond1 -mapall=user2 pc01 pc02 > > /cond2 -mapall=user1 pc01 pc02 > > is correct, but only if /cond1 and /cond2 are different filesystems. > If they're the same, this won't work. > /cond1 and /cond2 are folders under root on /dev/ad0s1a; this is the reason whi my exports does not work. So should I do something like this: #mkdir /usr/shared/cond1 #mkdir /usr/shared/cond2 (this is, I think, a better choice also from different points of view). (exports) /usr/shared -alldirs pc01 pc02 (or -network 192.168.0) (mount for different users) #mount _nfs server:/usr/shared/cond1 /mnt/for-user-1 #mount _nfs server:/usr/shared/cond2 /mnt/for-user-2 But, if this sintax is correct, how can I use mapall option? > Maybe you do something clever with exporting nullfs versions > of them and adding those to exports, but I haven't tried that. > This will be the next step. Thank you. Marco ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"