{"action":"closed","issue":{"url":"https://api.github.com/repos/msimerson/NicTool/issues/67","labels_url":"https://api.github.com/repos/msimerson/NicTool/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/msimerson/NicTool/issues/67/comments","events_url":"https://api.github.com/repos/msimerson/NicTool/issues/67/events","html_url":"https://github.com/msimerson/NicTool/issues/67","id":55455679,"number":67,"title":"imports ignore NS records","user":{"login":"msimerson","id":261635,"avatar_url":"https://avatars.githubusercontent.com/u/261635?v=3","gravatar_id":"","url":"https://api.github.com/users/msimerson","html_url":"https://github.com/msimerson","followers_url":"https://api.github.com/users/msimerson/followers","following_url":"https://api.github.com/users/msimerson/following{/other_user}","gists_url":"https://api.github.com/users/msimerson/gists{/gist_id}","starred_url":"https://api.github.com/users/msimerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msimerson/subscriptions","organizations_url":"https://api.github.com/users/msimerson/orgs","repos_url":"https://api.github.com/users/msimerson/repos","events_url":"https://api.github.com/users/msimerson/events{/privacy}","received_events_url":"https://api.github.com/users/msimerson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/msimerson/NicTool/labels/defect","name":"defect","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T08:09:16Z","updated_at":"2015-01-28T21:06:07Z","closed_at":"2015-01-28T21:06:07Z","body":"Currently, during DNS imports, NS records are ignored. These are handled by a command line argument `nt_import.pl --nameservers=[nsid, nsid, nsid]`. This has the unfortunate side effect of ignoring NS records inside a zone file that aren't for that zone (glue records). A band-aid would be to check the hostname of the record and only ignore the NS if the fully qualified hostname equals the zone name. A better way to handle this would be:\r\n\r\n1. ~~allow zones to be created with zero name servers~~ Done.\r\n2. ~~fetch a list of name servers when starting the import~~\r\n3. ~~when NS records are encountered, and the name records is the same as the zone name, check the NS name against the list. For NS records in the list, insert the appropriate entry into nt_zone_nameserver. For all else, create the NS record as for any other RR.~~ Done.\r\n4. ~~remove the --nameservers option from `nt_import.pl`~~ Done."}}