Comments (2)
Answers.apply
expects ResourceRecord*
however you pass ResourceRecordModifier*
.
There is an implicit conversion from ResourceRecordModifier
to ResourceRecord
which unfortunately is not used automatically due to the use of ResourceRecordModifier
inside a List
.
Probably there should be a version of Answers.apply
which expects ResourceRecordModifier*
.
However as a quick solution you could simply trigger the conversion manually inside map
:
val addresses = List("1.2.3.4", "2.3.4.5") //This is constructed, I do a lookup in order to get the list
val records: List[ResourceRecord] = addresses.map(str ⇒ {
ARecord(str): ResourceRecord
})
Response ~ Questions(host) ~ Answers(records: _*)
from dns4s.
Cool, that works, thanks!
from dns4s.
Related Issues (10)
- Error while running client example HOT 1
- No version released for scala 2.11. HOT 3
- eDNS client ip option HOT 2
- Please add a basic DNS resolver from /etc/resolv.conf without having to manually specify DNS servers HOT 1
- Failing to bind HOT 5
- First class support for pattern matching CAA queries HOT 2
- How do dns4s respond on incorrect client request ? HOT 1
- JCenter and Bintray to be dismissed HOT 1
- akka typed support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dns4s.