|
|
some answers to questions?
real quick: i use bind/named is for caching my local network names and for caching DNS lookup information. in other words, i use it to speed up web browsing to use you own private DNS server rather than the one provided by my isp.
back to the questions:
who the hell cares how you get to be root, so long as it works?! worry about something else "a1291762". there are a million different ways to do it and i chose "sudo su".
on to the better questions/concerns:
you would list all the machines on your local network in the /var/named/localhost.zone file that you want to be able to reference by name. sadly, apple got rid of the /etc/hosts functionality. since bind/named is actually using the root DNS servers for initially resolving names they arent going to know who bubba is. and since you are actually making a ".localhost" domain, they certainly arent going to know who bubba.localhost is (rather than bubba.com).
if you only have one computer (the computer you are setting this up on), then there only needs to be one entry.
the "A" stands for alias. so the name "bubba" is aliased to the ip address 192.168.1.2. it could just as well be "my-mac" aliased to 192.168.1.67. "bubba", of course, is an example. this is the name of MY machine. change it to be the name of your machine. and it cant have any spaces in it, only "-" and numbers.
i have a linksys firewall/hub behind a cable modem. my mac is plugged into the linksys. so i chose the "bootleg" 192.168.x.x networking scheme for my not-real-world network. the linksys handles the goofy DHCP networking addresses that the isp gives me.
you could also have a:
gateway A 192.168.1.1reference in the file. so you would be able to ping your "gateway", (which would resolve to the ip address for the linksys router). you could, of course, call it whatever you want: some-router-thingy-a-mabob A 192.168.1.1you should also add AT LEAST the local machine (that this bind/named server is running on) to the /var/named/named.local file. the format is exactly the same. it couldnt hurt to also include the other machines. if you dont have your own private networking going on, and you are plugged into the modem directly, im not sure how all this bind/named stuff would work. getting that to work would probably be a real trick. i would invest in the linksys (or something like it). its safer for your computer, and it makes adding more machines easier. so, in summary, you can add as many names for different things on your own network that you want in the /var/named/localhost.zone file and the /var/named/named.local file: gateway A 192.168.1.1 bubba A 192.168.1.2 jones A 192.168.1.3 ibook A 192.168.1.44 gregs-7300 A 192.168.1.132both files serve different purposes, and both are necessary. when all is said and done, you should be able to bring up the prompt and type: >nslookup bubbaand it should come back with: Server: localhost
Address: 127.0.0.1
Name: bubba.localhost
Address: 192.168.1.2
if that doesnt work, try:>nslookup bubba.localhostif that doesnt work, then make sure the search domain in the networking control panel includes "localhost". you should also set your ip address to "bubba". also remember, after modifying the files, you HAVE to restart the bind/named server. and each time you do this, you lose the speed of all the caching of the lookups you have done. the DNS stuff stored locally is stored in memory, and there is "no way" to write it to disk. if you have a bunch of sites that you commonly go to that you would like quick lookup for when you turn your computer, you may want to create a StartupItem that does nothing but: ping macosxhints.com ping versiontracker.com ping macnn.com ping xlr8yourmac.cometc. that way, when you get around to browsing them, they are already in cache. i looked around long and hard for documentation on this stuff (im hardly a pro) and everything that i found was very technical, poorly written, and very confusing. thats why i sent in the tip - to try and boil it all down for everyone. here are a couple of sites, but its all very confusing: http://www.qwerta.com/macosx-bind-howto.html http://www.tldp.org/HOWTO/DNS-HOWTO-3.html http://www.uwsg.indiana.edu/usail/external/BIND-FAQ.html the cool thing is, apple pretty much has everything setup for you, and all you have to do is plug in a few things. i did all this for 10.1 and it was a major pain in the butt. i spent many long hours trying to get it work. writing your own config files is not fun. apple made it easy, be thankful.
some answers to questions?
"if you dont have your own private networking going on, and you are plugged into the modem directly, im not sure how all this bind/named stuff would work. getting that to work would probably be a real trick. i would invest in the linksys (or something like it). its safer for your computer, and it makes adding more machines easier."
some answers to questions?
did you make sure to:
chmod g-w /to make sendmail happy? modifying the /etc/mail/sendmail.cf file and fiddling with the O UnsafeGroupWrites=Falseline didnt seem to help me. if you did do the chmod trick, you are going to have to make sure to do it again after every install with a apple package you do. apparently the package installer resets that permission. a good way to figure out why your sendmail is not happy is to check in /var/log/mail.log. to troubleshoot, i open up a terminal and type tail -F /var/log/mail.logthis will show you what gets written to the file in real-time so long as you keep the tail process running. now send some mail and see what it is complaining about. or, research what the error is that the server is giving you back. i use http://groups.google.com/ as for my installation vs everyone elses installation, i did a clean install of 10.2. if you did an install over a 10.1 things could be all outta whack.
some answers to questions?
I did all of the perms fixes, had a clean install of 10.2. I was already tailing mail.log and the error message returned by sendmail is so non-specific I can't find any further info on it. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.16 seconds |
|