{"pull_request":{"merged_at":"2011-12-28T12:14:47Z","title":"Fix and improve the output of rsdns-list.sh","user":{"login":"fyfe","id":1221156,"url":"https://api.github.com/users/fyfe","avatar_url":"https://secure.gravatar.com/avatar/537f45b42e5b6dad3e2248d216d06f7c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"537f45b42e5b6dad3e2248d216d06f7c"},"created_at":"2011-12-25T17:38:57Z","state":"closed","updated_at":"2011-12-28T12:14:47Z","review_comments":0,"id":629716,"patch_url":"https://github.com/linickx/rsdns/pull/5.patch","deletions":30,"closed_at":"2011-12-28T12:14:47Z","html_url":"https://github.com/linickx/rsdns/pull/5","mergeable":null,"base":{"ref":"master","user":{"login":"linickx","id":649661,"url":"https://api.github.com/users/linickx","avatar_url":"https://secure.gravatar.com/avatar/4b66aeadf4a1e36234c8320c1741f911?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4b66aeadf4a1e36234c8320c1741f911"},"sha":"043a441d6858377e02874e2dc8c395b19f69155a","repo":{"open_issues":0,"created_at":"2011-09-17T11:03:29Z","git_url":"git://github.com/linickx/rsdns.git","watchers":8,"fork":false,"updated_at":"2011-12-28T12:14:48Z","id":2404487,"language":"Shell","html_url":"https://github.com/linickx/rsdns","name":"rsdns","master_branch":null,"description":"rackspace DNS tools","pushed_at":"2011-12-28T12:14:48Z","url":"https://api.github.com/repos/linickx/rsdns","ssh_url":"git@github.com:linickx/rsdns.git","forks":4,"clone_url":"https://github.com/linickx/rsdns.git","owner":{"login":"linickx","id":649661,"url":"https://api.github.com/users/linickx","avatar_url":"https://secure.gravatar.com/avatar/4b66aeadf4a1e36234c8320c1741f911?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4b66aeadf4a1e36234c8320c1741f911"},"homepage":"http://www.linickx.com/tag/rsdns","size":124,"private":false,"svn_url":"https://github.com/linickx/rsdns"},"label":"linickx:master"},"issue_url":"https://github.com/linickx/rsdns/issues/5","body":"Fix the output of MX and TXT records.\r\n\r\nOutput the domain and records list as a table.\r\n\r\nThe domains table is sorted by domain name, and the records table\r\nis sorted by type then by name.\r\n\r\nSigned-off-by: Andrew Fyfe <andrew@neptune-one.net>\r\n\r\nBefore MX and TXT records weren't parsed correctly and all name fields begin with a \":\r\n\r\n```\r\n    A-xxxxxx - A  - \"example.net - xxx.xxx.xxx.xxx\r\n    NS-xxxxxx - NS  - \"example.net - dns1.stabletransit.com\r\n    NS-xxxxxx - NS  - \"example.net - dns2.stabletransit.com\r\n    MX-xxxxxx - priority\":10  - \"example.net - MX\r\n    TXT-xxxxxx - TXT  - \"example.net - v=spf1\r\n    mx -   -  -\r\n    a:example.net -   -  -\r\n    2011-12-18T15:38:33.000+0000 - ttl\":86400  - -all - 2011-12-18T15:38:33.000+0000\"\r\n    TXT-xxxxxx - TXT  - \"example.net - spf2.0/pra\r\n    AAAA-xxxx - AAAA  - \"example.net - xxxx::xxxx:xxxx:xxxx:xxxx\r\n```\r\n\r\nWith this patch it now looks like this:\r\n\r\n```\r\n    Record ID       Type   Name          Data\r\n    AAAA-xxxx       AAAA   example.net   xxxx::xxxx:xxxx:xxxx:xxxx\r\n    A-xxxxxx        A      example.net   xxx.xxx.xxx.xxx\r\n    MX-xxxxxx       MX     example.net   priority:10 example.net\r\n    NS-xxxxxx       NS     example.net   dns1.stabletransit.com\r\n    NS-xxxxxx       NS     example.net   dns2.stabletransit.com\r\n    TXT-xxxxxx      TXT    example.net   v=spf1 mx a:example.net -all\r\n    TXT-xxxxxx      TXT    example.net   spf2.0/pra\r\n```","number":5,"additions":26,"commits":1,"url":"https://api.github.com/repos/linickx/rsdns/pulls/5","diff_url":"https://github.com/linickx/rsdns/pull/5.diff","_links":{"review_comments":{"href":"https://api.github.com/repos/linickx/rsdns/pulls/5/comments"},"html":{"href":"https://github.com/linickx/rsdns/pull/5"},"self":{"href":"https://api.github.com/repos/linickx/rsdns/pulls/5"},"comments":{"href":"https://api.github.com/repos/linickx/rsdns/issues/5/comments"}},"merged_by":{"login":"linickx","id":649661,"url":"https://api.github.com/users/linickx","avatar_url":"https://secure.gravatar.com/avatar/4b66aeadf4a1e36234c8320c1741f911?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4b66aeadf4a1e36234c8320c1741f911"},"comments":1,"head":{"ref":"rsdns-list","user":{"login":"fyfe","id":1221156,"url":"https://api.github.com/users/fyfe","avatar_url":"https://secure.gravatar.com/avatar/537f45b42e5b6dad3e2248d216d06f7c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"537f45b42e5b6dad3e2248d216d06f7c"},"sha":"84c0b46dab769fe794ad12e6e13bdec862aecaff","repo":{"open_issues":0,"created_at":"2011-12-17T01:49:37Z","git_url":"git://github.com/fyfe/rsdns.git","watchers":1,"fork":true,"updated_at":"2011-12-25T17:21:14Z","id":2999058,"language":"Shell","html_url":"https://github.com/fyfe/rsdns","name":"rsdns","master_branch":null,"description":"rackspace DNS tools","pushed_at":"2011-12-25T17:21:14Z","url":"https://api.github.com/repos/fyfe/rsdns","ssh_url":"git@github.com:fyfe/rsdns.git","forks":0,"clone_url":"https://github.com/fyfe/rsdns.git","owner":{"login":"fyfe","id":1221156,"url":"https://api.github.com/users/fyfe","avatar_url":"https://secure.gravatar.com/avatar/537f45b42e5b6dad3e2248d216d06f7c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"537f45b42e5b6dad3e2248d216d06f7c"},"homepage":"http://www.linickx.com/tag/rsdns","size":112,"private":false,"svn_url":"https://github.com/fyfe/rsdns"},"label":"fyfe:rsdns-list"},"merged":true,"changed_files":1},"number":5,"action":"closed"}