Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/Resources/views/lookup/domain.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
{% block title %}Lookup Domain{% endblock %}

{% block body %}
<h2>{{ domain }}</h2>
{% for domain in domains %}
<h2>{{ domain }}</h2>
{% endfor %}
{% endblock %}
2 changes: 1 addition & 1 deletion src/AppBundle/Controller/LookupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function LookupDomainRoute($domain) {
$scontainer = $this->get('scontainer');
$d = $scontainer->hostByName($domain);

return $this->render('lookup/domain.html.twig', ["domain" => $d]);
return $this->render('lookup/domain.html.twig', ["domains" => $d]);
}
}
2 changes: 1 addition & 1 deletion src/AppBundle/SContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public function hostByAddr($addr) {
* @return string
*/
public function hostByName($name) {
return gethostbyName($name);
return gethostbynamel($name);
}
}