summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_dns.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3737 from phil-davis/diag-dns-hide-add-alias-buttonRenato Botelho2017-05-231-0/+17
|\
| * Diag DNS disable Add Alias button when host field is changedPhil Davis2017-05-211-0/+17
| |
* | Merge pull request #3734 from phil-davis/patch-1Renato Botelho2017-05-231-0/+2
|\ \
| * | Diag DNS fix update alias button text after add aliasPhil Davis2017-05-211-0/+2
| |/ | | | | | | | | | | | | | | | | 1) Lookup a name with Diag DNS 2) Press "Add Alias" The alias is added, but the button still says "Add Alias". Actually the alias exists by now. The button should say "Update Alias". Fix: once we have emitted the alias create/update success message, we can set $alias_exists true so that the rest of the code is based on the (possibly new) state.
* | Merge pull request #3735 from phil-davis/dns-lookup-add-aliasRenato Botelho2017-05-231-2/+2
|\ \
| * | Diag DNS do not show Add Alias if no priv to add alaisPhil Davis2017-05-211-2/+2
| |/
* | Diag DNS do not create an empty alias if name does not resolvePhil Davis2017-05-211-10/+25
|/
* Remove duplicate write_config from diag_dnsPhil Davis2017-03-291-1/+0
|
* Add reason to write_config() calldoktornotor2017-03-091-0/+1
|
* Required fields in diagnosticsPhil Davis2017-01-221-1/+1
|
* Fix diag_dns regressionsNewEraCracker2016-09-081-20/+8
| | | | | | | | | | | | | | | After testing diag_dns behaviour some regressions have been noticed. 1) Looking up ipv6.google.com (it only has AAAA records) doesn't work - gethostbyname() only supports v4, ipv6.google.com only has v6 - this bug was recently and inadvertently introduced 2) Results table will always show even when domain is not resolved - since refactoring ages ago, $resolved is an array, bad idea to replace with a string, this will cause issues - this piece of code was 'dead' until the recent commit has 'enabled' it again, removing it as not needed 3) Parameters for display_host_results (see: fe74228f2a8a9abc45a580a01559518043ca8d0b for its introduction) weren't correctly updated - mostly a dead function, doubt this is used for anything, keeping it just in case. This commit fixes all aforementioned issues.
* Move copyright from ESF to NetgateRenato Botelho2016-09-061-1/+1
|
* Fix diag_dns ipaddr set to use in IP WHOIS and IP InfoRenato Botelho2016-09-021-4/+7
| | | | | | | | | | | | - Do not call resolve_host_addresses() when hostname cannot be resolved by gethostbyname(). The old check was considering gethostbyname would return NULL in this case but it returns a string with the hostname passed on parameter - Since resolve_host_addresses() always return an array, look for the first A record to set $ipaddr, which will be used later to link with IP WHOIS and IP Info Based on Pull Request #3100 submitted by @NewEraCracker
* Removed unused variable $hostnameRenato Botelho2016-09-021-2/+0
|
* Add output encoding to diag_dns.php for results returned from DNS. Fixes #6737jim-p2016-08-221-4/+4
|
* Code style and commentsPhil Davis2016-08-161-2/+2
| | | | No functional change - just making style consistent
* Move to Apache License 2.0Renato Botelho2016-07-151-41/+9
|
* Review license / copyright on all files (final round)Renato Botelho2016-07-151-41/+39
|
* chmod 0644 php web pagesRenato Botelho2016-07-141-0/+0
|
* Fix PTR lookups on diag_dns.php. Ticket #6561Chris Buechler2016-07-061-3/+6
|
* Change button order on diag_dns.php so hitting enter in the field does a ↵Chris Buechler2016-07-021-9/+9
| | | | lookup rather than update alias. semi-related to Ticket #6561
* Merge pull request #3028 from PiBa-NL/2.3_dnsV6Chris Buechler2016-06-291-19/+56
|\
| * Diagnostics - DNS Lookup, also query for IPv6 addressesPiBa-NL2016-06-291-19/+56
| |
* | Always use require_oncePhil Davis2016-06-271-1/+1
|/ | | | | | | | | The usage of require() and require_once() throughout the system is inconsistent, and "bugs" come up now and then when the order of "requires" is a bit different and some require() happens after the include file is already included/required. It seems to me that there is no harm at all in always using require_once().
* Merge pull request #2839 from phil-davis/patch-6Renato Botelho2016-04-051-1/+7
|\
| * Handle alias from CNAME in diag_dnsPhil Davis2016-04-051-1/+7
| | | | | | | | | | | | If I resolve a CNAME with diag_dns, it gives back the translated FQDNs - e.g. www.inf.org translates to inf.org. Then press "Add Alias". Problem: The existing code puts a "/32" CIDR after that in the alias "www_inf_org" in the config - "inf.org./32" - and if you then edit the "www_inf_org" alias it shows as "inf.org./32" in the Network or FQDN Address field. Normally when putting an FQDN into an alias, no CIDR is inserted. This change fixes it.
* | Allow to update existing alias from diag DNSPhil Davis2016-04-051-20/+21
|/ | | | See Redmine #6077 This seems the easy and reasonable thing to do. Make the button text reflect what is going to happen "Add alias" or "Update alias". Then the backend code can just either create a new alias or overwrite an existing one.
* Truncate alias name at 31 characters to prevent creating an invalid ruleset. ↵Chris Buechler2016-04-041-1/+1
| | | | Ticket #6075
* Use correct subnet mask for IPv6. Fixes #6039Renato Botelho2016-03-291-1/+3
|
* Revert "Merge pull request #2728 from phil-davis/form_button"Renato Botelho2016-03-151-2/+2
| | | | | This reverts commit a32bed49516f3df3d104a5026a5b2c74451f348f, reversing changes made to 9ec9978267a5d1985d6da8ba35d52b7174239d2f.
* Internationalize Form_Button textPhil Davis2016-03-111-2/+2
| | | | | | The text of a Form_Button is not translated internally. Some Form_Button calls already had the button text enclosed in gettext(), this does it for the remaining ones.
* Bring some consistency to the way most buttons are displayed (color, icons, ↵jim-p2016-03-091-2/+12
| | | | | | etc). Ticket #5965 Still need to review Advanced buttons and Repeatable block buttons.
* Review alert wording. End sentence with period, remove redundant 'Warning', ↵k-paulius2016-02-141-2/+2
| | | | 'Error', etc. prefixes, since alerts are now color coded. Remove <b> tags.
* Use print_info_box() to generate alertsk-paulius2016-02-141-2/+2
|
* Review alert wording. End sentence with period, remove redundant 'Warning', ↵k-paulius2016-02-141-2/+2
| | | | 'Error', etc. prefixes, since alerts are now color coded. Remove <b> tags.
* Use print_info_box() to generate alertsk-paulius2016-02-141-2/+2
|
* Convert section titles to title casek-paulius2016-02-101-1/+1
|
* add call gettext function for translatebruno2016-01-211-1/+1
|
* Internationalization batch 1Phil Davis2016-01-161-7/+7
|
* All simple php echo to shortNewEraCracker2016-01-141-2/+2
| | | | Short version is far more used than long php echo. This brings all code to same standard where possible.
* Convert remaining short_open_tag occurances. See PR #2378NewEraCracker2016-01-111-2/+2
|
* Convert short open tags to full tagsNewEraCracker2016-01-071-3/+3
| | | | | | Short open tag is discouraged since it is only available if enabled See https://secure.php.net/manual/en/language.basic-syntax.phptags.php
* Remove all pfSense_MODULE and pfSense_BUILDER_BINARIES definitions, whatever ↵Renato Botelho2015-12-151-3/+0
| | | | was the reason they were added, it was never finished and it's not being used
* Code style usr local www a-ePhil Davis2015-12-141-4/+7
|
* better spacingJared Dillard2015-11-251-1/+1
|
* Calling all of these "Page" in the privilege name is redundant since they ↵jim-p2015-11-251-1/+1
| | | | are all pages and the "WebCfg" prefix implies they are pages.
* Add some missing privileges to pagesjim-p2015-11-251-0/+7
|
* Added use of class autoloading (GUI stuff only)Doug Wollison2015-11-231-2/+0
| | | | | Any GUI script that loads the guiconfig.inc file will have access to the autoloader.
* fix Bug #5400heper2015-11-111-1/+1
| | | | interface=wan could be offline/disabled in multi-wan systems. also, currently no code in diag_ping.php to convert 'wan' => source-ip
* Merge with masterPhil Davis2015-11-091-1/+0
|\
OpenPOWER on IntegriCloud