Bind, will it work for local dev dns? [solved]

im trying to get bind to work, and trying to get my stack overflow points up lately too,
will bind work for what i need it for?
i have a lamp stack arch box here, and im putting bind on it, hopefully to solve an issue.  briefly, i want this lamp stack to also be my internal network's dns server,  for a specific purpose.  that purpose is so that on my windows dev machine, i dont have to fuck with my etc/hosts file any more, and so that i can finally designate this lamp stack server with a real domain name structure (e.g. on httpd.conf ServeName=finally.domain.pvt, as opposed to ServerName=192.168.1.10:80, and so that i can simplify my vhosts file too, by having a domain standard finally.  so i aim to replace etc/hosts entries (e.g. shitter.domain.pvt, pisser.domain.pvt, pooper.domain.pvt, ideally into *.domain.pvt on zone file) with A record entries so they are propegated to all pcs on the network.  is this possible?
see this for all the details.
http://stackoverflow.com/questions/2987 … -on-server
Last edited by wolfdogg (2015-04-27 08:00:41)

solved
one problem was being shed light from
journalctl -xn
, i needed to do what was mentioned here https://bbs.archlinux.org/viewtopic.php … 4#p1391324  to solve those issues. the file, and dir were missing.
the rest of teh problems were worked out with a better understanding of the zone file, and with finally getting logging working ( see named.conf for that)
if somebody wants to add this to the wiki, and or make a wiki called local dns server, or something, feel free, otherwise, i will end up getting this stuff in there in due time. 
// vim:set ts=4 sw=4 et:
acl "trusted" {
192.168.1.0/24;
127.0.0.0/8;
options {
directory "/var/named";
pid-file "/run/named/named.pid";
listen-on { trusted; };
listen-on-v6 { any; };
allow-query { trusted; };
allow-transfer { none; };
allow-update { none; };
forwarders {
8.8.4.4;
8.8.8.8;
query-source address * port 53;
version none;
hostname none;
server-id none;
logging {
channel default_file {
file "/var/log/named/default.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel general_file {
file "/var/log/named/general.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel database_file {
file "/var/log/named/database.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel security_file {
file "/var/log/named/security.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel config_file {
file "/var/log/named/config.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel resolver_file {
file "/var/log/named/resolver.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel xfer-in_file {
file "/var/log/named/xfer-in.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel xfer-out_file {
file "/var/log/named/xfer-out.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel notify_file {
file "/var/log/named/notify.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel client_file {
file "/var/log/named/client.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel unmatched_file {
file "/var/log/named/unmatched.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel queries_file {
file "/var/log/named/queries.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel network_file {
file "/var/log/named/network.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel update_file {
file "/var/log/named/update.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel dispatch_file {
file "/var/log/named/dispatch.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel dnssec_file {
file "/var/log/named/dnssec.log" versions 3 size 5m;
severity dynamic;
print-time yes;
channel lame-servers_file {
file "/var/log/named/lame-servers.log" versions 3 size 5m;
severity dynamic;
print-time yes;
category default { default_file; };
category general { general_file; };
category database { database_file; };
category security { security_file; };
category config { config_file; };
category resolver { resolver_file; };
category xfer-in { xfer-in_file; };
category xfer-out { xfer-out_file; };
category notify { notify_file; };
category client { client_file; };
category unmatched { unmatched_file; };
category queries { queries_file; };
category network { network_file; };
category update { update_file; };
category dispatch { dispatch_file; };
category dnssec { dnssec_file; };
category lame-servers { lame-servers_file; };
zone "ld.pvt" IN {
type master;
file "ld.pvt.zone";
$TTL 7200
@ 1D IN SOA ns1.ld.pvt. root.ld.pvt. (
2007011622 ; Serial
3H ; Refresh
15M ; Retry
1W ; Expire - 1 week
1D ) ; Minimum
IN NS ns1.ld.pvt.
ns1.ld.pvt. IN A 192.168.1.10
*.ld.pvt. IN CNAME ns1.ld.pvt.
redtail.ld.pvt. IN A 192.168.1.99

Similar Messages

  • Lion Server DNS service not working for locally created zones. Caching working fine.

    OS Lion Server DNS service not working for local zones. Was fine under Snow leopard server but Lion server upgrade has severely broken my DNS and web sites. Zones look fine under Server Admin but keep getting "query failed (SERVFAIL) for xxxx at /SourceCache/bind9/bind9-42/bind9/bin/named/query.c:3921" in the logs. BTW - Server Admin cant seem to see the log file either.
    Surely someone actually tested that DNS still worked on Lion?

    I upgraded from Snow Leopard Server to Lion Server on day 01.  I hit the same issue where, after the upgrade, my Lion Server stopped serving names for my private local domain.
    I finally took a few minutes to figure out what was wrong.  After turning on debug logging and looking through the logs, I found my particular issue, now resolved.
    The issue I had was, when the domain initially was setup when I installed Snow Leopard Server, for some reason it created a zone just for the server (in my case, something like zone "s-01.mydomain.priv"), and a separate zone for all the other machines (zone "mydomain.priv", containing all the private IPs for my local domain).  I never messed with it because it worked, but generally I would have put all of them in the same zone.
    My zone "mydomain.priv" had a nameserver and mail exchanger entry for my server, s-01.mydomain.priv.  I could see this in the Server Admin app on the DNS bubble, Zones tab, mydomain.priv selected, and the General Info panel.  This was fine in Snow Leopard.  This was failing the zone load in the updated bind for Lion Server, though.  The issue was that the "mydomain.priv" zone was referencing the s-01.mydomain.priv server, which was not defined in the "mydomain.priv" zone but rather in the "s-01.mydomain.priv" zone.
    My fix:
    1. In Server Admin, add the server to the zone "mydomain.priv".  I put an A record (Add Machine) in the "mydomain.priv" zone for my server named s-01.mydomain.priv.
    2. shut down DNS on the OS X Lion Server (hit the Stop DNS button on Server Admin).
    3. edit /etc/named.conf by hand, removing the specialized zones that contianed just the server.  In this case, it would be the section titled 'zone "s-01.mydomain.priv"' and the section titled 'zone "3.10.1.10.in-addr.arpa"'.  Your in-addr.arpa zone name will change based on whatever your server IP address was.  My internal one happened to have s-01.mydomain.priv mapped to 10.1.10.3.
    4. Once the specialized zones for just the server were removed, I started the DNS up again.  Instead of serving four zones as it had in OS X Snow Leopard Server, it now servers two zones.  And, now, it is resolving my local machines for the mydomain.priv zone.
    YMMV.  I did note that it wasn't totally necessary to do step 3, but I never really understood the need for the specialized domain, and keeping it around would have a copy of data that would just confuse things.
    Hope that helps.  That's been the only hiccup I've noticed updating to OS X Lion Server thus far.

  • I purchased Adobe photoshop elements II and Adobe premiere elements II. They are both on one disc. My computer crasded and I had to reload Windows. I only have one serial number and it only works with photoshop II. The same serial number will not work for

    I purchased Adobe photoshop elements II and Adobe premiere elements II. They are both on one disc. My computer crasded and I had to reload Windows. I only have one serial number and it only works with photoshop II. The same serial number will not work for Premiere. I dont have any other serial numbers. What do I do???

    Static_Unit
    I am getting a bit concerned about what is happening in your situation. Yesterday you posted your question in at least two different forums, one of them being here in the Premiere Elements Forum.
    Don't Have Serial Number for Premiere, Only Photoshop?
    Wherever you posted, the reply was to contact Adobe via its Adobe Chat. It is the only one who can sort out this matter for you.
    In the thread cited above I offered to help you with the difficulties that you were having visualizing the Adobe Chat in its web page. I was waiting for your follow up on that in the above thread. Instead, I find your same question in a new Adobe Premiere Elements Forum thread this afternoon with no refer the prior threads or prior recommendations given you.
    I will also mention again...when you buy the Photoshop Elements and Premiere Elements bundled in one packaging and with installation files for each on the same installation disc, each program has its own serial number. The Photoshop Elements serial number does not work for Premiere Elements and vice versa. The serial numbers are on labels on a box which houses the installation disc envelope(s). So, if you purchased both programs and found the Photoshop Elements serial number, then the Premiere Elements serial number should be in a label right underneath the label with the serial number for Photoshop Elements. I recall writing this in your yesterday's thread on this matter.
    The moderator will no doubt be along shortly to close or delete this thread. So, just in case, please bookmark your yesterday's thread cited above so that we can continue this communication which is trying to help you.
    Thanks.
    ATR

  • I have a licensed copy of Adobe Acrobat X Pro for Windows.  I recently switched over to MAC OS and would like to move my Adobe X Pro over but the CD will not work for Mac OS?  Can anyone assist me with this conversion?  Best,  James.

    I have a licensed copy of Adobe Acrobat X Pro for Windows.  I recently switched over to MAC OS and would like to move my Adobe X Pro over but the CD will not work for Mac OS?  Can anyone assist me with this conversion?
    Best,
    James.

    you cannot use your pc license to install on a mac.  you would need a separate license (and serial number) for that.
    adobe allows platform swaps, but only with the latest (xi) version, Order product | Platform, language swap
    your option to use acrobat on a mac are to upgrade to acrobat pro xi and change platforms, use a windows emulator (parallels/boot camp etc) on your mac or swap with a third party.

  • OSMF not working for local .f4v on linux

    hey frnds,
    OSMF not working for local .f4v on linux system.
    It shows playback error.
    Is it bug of osmf ?
    Why it can not play local video(.f4v) on linux
    thx in advanced,

    hey frnds,
    i'm running this app from adobe air on linux.

  • I am having difficulties in maintaining a facetime connection through my ipad.  It will generally work for 20 seconds or so and then the frame freezes. It is difficult to follow our 2 year grandson. Any fixes?

    I am having difficuties in maintaining a Facetime connection through my ipad 2. It will generally work for 20 seconds or so, and then the frame freezes. Sometimes we have audio with a freeze frame picture. It is difficult to maintain the attention of a 2 year grandson anyway, but the the lost connections make it impossible. Any fixes?

    This is a connection problem with wifi.   Either your wifi is failing, or your internet service is not fast enough for video feed.

  • I have iPhone 4 runs on iOS 7 and now iPad mini 2 run on iOS 8 but once I install iTunes 12 64 but windows den will it work for iphone4

    I have iPhone 4 runs on iOS 7 and now iPad mini 2 run on iOS 8 but once I install iTunes 12 64 but windows den will it work for iphone4 ?

    Hi bhaity2014,
    Welcome to the Apple Support Communities!
    I understand that you are concerned that your iPhone 4 running iOS 7 may not be recognized in iTunes 12. Your iPhone 4 running iOS 7 should have no issues being recognized or syncing with iTunes 12. If it is not recognized in iTunes on your Windows computer, please use the attached article for troubleshooting assistance. 
    iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support
    Best regards,
    Joe

  • Usb will only work for powered devices

    I am having an issue to where my USB ports will only work for devices that have power supplied to them, ie an external hard drive that has a power adapter and not for devices that do not have power supplied to them.  I was seeing if anyone could help me resolve this issue?
    I have a Macbook Pro 15 inch Late 2011 model w/ the 2.2 Ghz i7 Processor.

    Eustace Mendis wrote:
    This is simply a case of the USB ports not being able to provide enough power. I do not know if there is a way to change this.
    This is highly unlikely, the USB specification (to which Apple adhere) requires a constant 1 amp at 5 volts, a peak of 2 amps for a brief period is available. All reputable manufacturers adhere to this spec, it is more likely a fault condition.
    To the OP, reset the Pram http://support.apple.com/kb/ht1379 
    and reset the SMC http://support.apple.com/kb/HT3964
    Reboot the machine and try again.
    If this brings no relief you should follow Oglethorpes advice and take it to Apple for repair.

  • I got a replacment iphone 4 but it will not work for me please help??

    i got a replacment iphone 4 but it will not work for me it has been charging for nearly 4 hours now but the screen still has the battery in the red and also will not connect to itunes is there something im doing wrong??

    You'll have to get it serviced or replaced again, contact Apple, usually a replaced device is under warranty for 90 days as well.
    Apple - Support - Service Answer Center

  • Will iPSP work for video conversion?

    I'm sure this was covered before, however I'm getting tired and can't find it....
    Will iPSP work for converting video to an iPod "friendly" format that will sync and play on the iPod?
    If so, what settings do I need, etc.
    Thanks.

    Indeed possible; if you are using AIR 2.5 for android. Have a look at one such example here: http://www.flashmobileblog.com/2010/07/17/p2p-video-calls-on-android/

  • Reset password will not work for apple store

    Reset password will not work for apple store?

    Welcome to the Apple Community.
    Where have you reset your password.

  • My apple id will not work for my icloud account

    my apple id will not work for my icloud account I am running windows 7 I have reinstalled ICloud for PC several times but do not know where to set up an icloud account

    If you are getting a message that says you have a valid Apple ID but not an iCloud ID, it's because you are trying to create an iCloud account on a PC.  You can only create iCloud account on an iOS device (iPhone, iPad or iPod Touch) running iOS 5 or higher, or on a Mac running OS X Lion (10.7.5) or higher.  After creating your account on one of these devices you will then be able to sign into the account using this ID on your PC.

  • After the update my earbuds will not work for my music BUT will work fine for phone conversations

    After the update my earbud will not work for music BUT will work for phone conversations

    this might sound dumb but how do i do that because that is probably the problem

  • Mail not working for local users

    I have sunOS 5.9 running on sun sparc
    mail is not working on this system even for local users.
    I have tried from the command prompt
    mail username
    Test email
    ^D
    nothing happens after control D, I don't get command prompt.
    I also tried
    mail username
    Test email
    nothing happens
    sendmail daemon is not running on this system but my understanding is that sendmail is not required. I need mail to work only for local users to receive emails for failed cron jobs etc, it is not required for this system to send or receive emails to/from outside world.
    Can someone guide or point in right direction to fix mail functionlality for local users?

    Actually, with recent versions of sendmail, you do need sendmail running to be able to send mail.
    You never used to, but since they made sendmail no longer setuid root, you do.
    Sendmail has essentially been split into 2 daemons a local queue runner with handles sending sent by local users.
    And a listener daemon with listens for remote connections.
    If you want to be able to send mails but not have sendmail listening, you have a couple of options.
    You can either run only the local queue runner and not run the listener. In this case you have to configure the local queue runner to send mails onto a external mail host for processing. This requires editing /etc/mail/submit.cf
    Alternately, you need to configure the local listener to only bind to the localhost port so it can't be contacted from external sources.
    This requires editing sendmail.mc and regenerating a new sendmail.cf
    I tend to favour the latter option as the former limits your ability to do things like local aliases of root: [email protected] to send all your root mail to a central account.
    This is the sendmail.mc you will need
    divert(0)dnl
    VERSIONID(`@(#)main.mc 1.5 (Sun) 08/10/00')
    OSTYPE(`solaris8')dnl
    DOMAIN(`solaris-generic')dnl
    DAEMON_OPTIONS(``Port=smtp, Addr=127.0.0.1, Name=MTA'')dnl
    FEATURE(`no_default_msa')dnl
    MAILER(`local')dnl
    MAILER(`smtp')dnl

  • Mystery with SSD - How long will it work for?

    This is weird. I am writing this on my new MBP, i7, early 2011, model 8,3. Last Saturday I installed an OWC 480 GB 6G Pro SSD in it and it worked grand, I built Lion onto it and used Migration Assistant to build my account. I used it that afternoon and evening and was delighted.
    On Sunday it took an AGE to boot. It ran in fits and starts - stutters - and so I bought up Activity Monitor and set it to Disk Activity and then used DiskSpeedTest to keep on hammering the drive at full speed. About every minute the disk activity graph would flat-line and the system would freeze. CPU activity remained normal, the rest of the Activity Monitor screen updated, but nothing worked, spinning beachball and all was locked up. Then it would start up and run happily for a minute, two minutes, a few seconds, and repeat the process. Each time the disk activity would slam down to zero and if I tried anything the beachball would come up and nothing worked. Then - off it would go. But, even so, I could not use it.
    I popped in the original HDD late Sunday and did another Migration Assistant run, and then simply used the machine normally. On Monday I called Apple and told then what was happening and they said bring it in to the geniae at a Macstore with the SSD inside, they want to see it. So on Tuesday, today, I reinstalled the SSD and let it run, noting that it seemed to be doing the flat-line less, and as the day wore on, less and less, until about three this afternoon it seemed solid. So I moved out my old MBP, did a targeted update using a FW 800 and brought over the files I had changed, then moved the new MBP with the SSD into prime position, and here it is working fine.
    Why!?
    Is it possible there is some sort of burn-in? Why is it working - and not suddenly like - but gradually? Any ideas?
    I know time will tell but I need to decide if I should return this SSD and go with a SATA2 OWC SSD which I have read does not have any problem, but right now - whoopee, it is faster than blazes.
    Does anyone have any experience with this stuff that might explain it or tell me if I am just waiting to get thoroughly burnt?
    Thanks - Lawrence

    I confess I am still puzzled by what is happening during this re-indexing of which you speak. I cannot see why this would cause the whole machine to come to a grinding halt for sometimes minutes at a time, and it has not been reported on the 13" or 15" machines on which the 6G SSDs work fine. Anyway, I have indeed left the machine on for a day and it has made no difference, it will lock up for anything from a second to a minute or two every - well - few seconds or minutes. Sometimes it goes for ten minutes with no problem, then it will have nothing but stutterings for ten minutes at a time.
    I went to the local genius bar last night and they hemmed and hawed and went through the startup software. I told them the system had run fine with the identical software on the HDD it came with, and I told them that the drive worked fine in the eSata dock and that the 6G SDD is known to work in the 13" and 15" MBPs, but they would not own any problem. The said it could be the drive and they had no reported problems and it was not a drive they supported,  he told me in fact this was the first system he had seen so equipped and he had never heard of a problem such as this. Bottom line is I need to get another drive and show it failing in my 17" MBP, then show the same drive working in a 15" or 13" - which is not going to happen for obvious reasons.
    So I gave up this afternoon, this is not a battle I have the resources to win. OWC is a first rate company and made no bones about a return and full refund and I have a 3G SSD arriving tomorrow. This is still far ahead of the HDD in performance.
    I could also return the MBP and wait for some unspecified time for a new model that has this problem fixed, but I think not. I shall no longer be the speediest bloke on the block, but I shall be pretty good. Although - wait - I SHALL be the speediest bloke on the block even so!
    Thanks for your help. I will monitor OWC's site as they seem to be tracking the MBPs as they come out of Apple and we'll see what happens in the future. It may be there will be a fix I can implement and I can sell the 3G and go get another 6G. But probably not.
    Cheers - Lawrence

Maybe you are looking for

  • IPod touch 4th Gen is recognized as digital camera, not in iTunes

    I'm using a Windows XP computer with the newest version of iTunes and my iPod touch 4 won't pop up in iTunes, it's a digital camera according to my pc. I have tried really EVERYTHING: update iTunes, downgrade iTunes, reinstall iTunes and all other ap

  • How do I permanently enlarge the text size

    Hi, all. I know how to enlarge the text size by hitting the "command +" keys simultaneously, but then when I close Safari, the text size is back to the default size the next time I open Safari. I'd like the font size to stay large all the time. How c

  • Spaces fails to work correctly when I turn on the computer

    I'm using a macbook pro and just got it last week. Whenever I turn on my laptop, CTRL + Down Arrow/Up Arrow doesn't work with spaces. using the side arrow works though. Restarting seems to fix this but that is annoying and not very time efficient. Ho

  • CSS active-active stateful failover

    Dear All, May I confirm if CSS can do active-active stateful failover? If so, is it any restriction? and any Cisco URL I can refer to? Thanks a lot. mak

  • Hiding InfoObject

    Hello, I was wondering if it is possible to hide InfoObject dynamically in the Bex based on the value of some other InfoObject. To make my question simple let's say I have three InfoObjects - Vendor Type, Electric Meter Reading and Shipping Date. All